Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pguint #22

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ RUN apt-get install -y --no-install-recommends pgxnclient && \



FROM common-deps as build-pguint

WORKDIR /tmp/pguint
RUN ASSET_NAME=$(basename $(curl -LIs -o /dev/null -w %{url_effective} https://github.com/petere/pguint/releases/latest)) && \
curl --fail -L "https://github.com/petere/pguint/archive/${ASSET_NAME}.tar.gz" | tar -zx --strip-components=1 -C . && \
make && \
make install




FROM common-deps as build-sqlite_fdw

WORKDIR /tmp/sqlite_fdw
Expand Down Expand Up @@ -238,6 +249,13 @@ COPY --from=build-timescaledb \
/usr/lib/postgresql/$PG_MAJOR/lib/timescaledb* \
/usr/lib/postgresql/$PG_MAJOR/lib/

COPY --from=build-pguint \
/usr/share/postgresql/$PG_MAJOR/extension/uint* \
/usr/share/postgresql/$PG_MAJOR/extension/
COPY --from=build-pguint \
/usr/lib/postgresql/$PG_MAJOR/lib/uint* \
/usr/lib/postgresql/$PG_MAJOR/lib/

COPY --from=build-sqlite_fdw \
/usr/share/postgresql/$PG_MAJOR/extension/sqlite_fdw* \
/usr/share/postgresql/$PG_MAJOR/extension/
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ For more detailed instructions about how to start and control your Postgres cont
- [pgq_node](https://github.com/pgq/pgq-node)
- [pgrouting](https://github.com/pgRouting/pgrouting)
- [pgtap](https://github.com/theory/pgtap)
- [pguint](https://github.com/petere/pguint)
- [pgvector](https://github.com/pgvector/pgvector)
- [pg_cron](https://github.com/citusdata/pg_cron)
- [pg_dirtyread](https://github.com/df7cb/pg_dirtyread)
Expand Down
12 changes: 12 additions & 0 deletions tests/create_extensions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,18 @@ SELECT ok(TRUE);
SELECT * FROM finish();


-- https://github.com/petere/pguint
CREATE EXTENSION uint;
CREATE TABLE uint_test (
i1 int1, -- signed 8-bit integer
u1 uint1, -- unsigned 8-bit integer
u2 uint2, -- unsigned 16-bit integer
u4 uint4, -- unsigned 32-bit integer
u8 uint8 -- unsigned 64-bit integer
);
INSERT INTO uint_test VALUES (-128, 0, 0, 0, 0), (127, 255, 65535, 4294967295, 18446744073709551615);


-- https://github.com/pgvector/pgvector
CREATE EXTENSION vector;
CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3));
Expand Down