Skip to content

Commit

Permalink
Add postgresql_hll (#250)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <evanstanton@Evans-MBP.fritz.box>
Co-authored-by: Ian Stanton <ian@coredb.io>
  • Loading branch information
3 people authored Jul 26, 2023
1 parent 1aa0aa9 commit 7278d7f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contrib/postgresql_hll/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

# Clone repository
RUN git clone https://github.com/citusdata/postgresql-hll.git

ARG RELEASE=v2.17

RUN cd postgresql-hll && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
20 changes: 20 additions & 0 deletions contrib/postgresql_hll/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[extension]
name = "postgresql_hll"
version = "2.16.0"
repository = "https://github.com/citusdata/postgresql-hll"
license = "Apache-2.0"
description = "HyperLogLog data structures as a native data type."
homepage = "https://www.citusdata.com/"
documentation = "https://github.com/citusdata/postgresql-hll"
categories = ["analytics"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd postgresql-hll && 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
"""

0 comments on commit 7278d7f

Please sign in to comment.