From 36136d54ead8cac1175f5b91c5a89840286511e4 Mon Sep 17 00:00:00 2001 From: Evan H Stanton <79367212+EvanHStanton@users.noreply.github.com> Date: Fri, 21 Jul 2023 16:11:18 +0200 Subject: [PATCH] Add lower_quantile (#254) Co-authored-by: Evan Stanton --- contrib/lower_quantile/Dockerfile | 8 ++++++++ contrib/lower_quantile/Trunk.toml | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 contrib/lower_quantile/Dockerfile create mode 100644 contrib/lower_quantile/Trunk.toml diff --git a/contrib/lower_quantile/Dockerfile b/contrib/lower_quantile/Dockerfile new file mode 100644 index 00000000..cd66823d --- /dev/null +++ b/contrib/lower_quantile/Dockerfile @@ -0,0 +1,8 @@ +ARG PG_VERSION=15 +FROM quay.io/coredb/c-builder:pg${PG_VERSION} + +# Clone repository +RUN git clone https://github.com/tvondra/lower_quantile.git + +RUN cd lower_quantile && \ + make diff --git a/contrib/lower_quantile/Trunk.toml b/contrib/lower_quantile/Trunk.toml new file mode 100644 index 00000000..ea43a569 --- /dev/null +++ b/contrib/lower_quantile/Trunk.toml @@ -0,0 +1,19 @@ +[extension] +name = "lower_quantile" +version = "1.0.0" +repository = "https://github.com/tvondra/lower_quantile" +license = "BSD-2-Clause" +description = "Provides lower_quantile aggregate function." +documentation = "https://github.com/tvondra/lower_quantile" +categories = ["analytics"] + +[build] +postgres_version = "15" +platform = "linux/amd64" +dockerfile = "Dockerfile" +install_command = """ + cd lower_quantile && make install + set -x + mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension + mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib + """