Commit Graph

23 Commits

Author SHA1 Message Date
Anastasia Lubennikova dfe815a032 Fix sfcgal_version for v17 2024-10-08 11:56:36 +01:00
Anastasia Lubennikova 8c6a83659a fix typos 2024-10-07 13:47:55 +01:00
Anastasia Lubennikova 0151deb76a Build PostGIS 3.5.0 only for v17
because of sfcgal dependency issue.
See comments in compute/Dockerfile.compute-node
2024-10-07 13:38:16 +01:00
Anastasia Lubennikova 461a680d64 fix unit and plpgsql_check 2024-10-04 17:01:06 +01:00
Anastasia Lubennikova 3de2add040 enable ip4r and pg_ivm for v17 2024-10-04 16:28:06 +01:00
Anastasia Lubennikova aa6500a64e fix test tar for plv8 2024-10-04 11:07:25 +01:00
Anastasia Lubennikova 9968aec2c5 Fix build dependency on debian bookworm for plv8 2024-10-03 16:05:54 +01:00
Anastasia Lubennikova ad9800aa18 Fix plv8 build 2024-10-03 15:40:21 +01:00
Anastasia Lubennikova 29e032d326 Fix plv8 build 2024-10-03 12:53:14 +01:00
Anastasia Lubennikova d754a70802 Merge branch 'main' into enable_v17_extensions 2024-10-03 11:31:08 +01:00
Anastasia Lubennikova 278fe5e736 fix postgis build 2024-10-03 11:23:44 +01:00
Heikki Linnakangas 6a9e2d657c Remove unnecessary dependencies from postgis-build image (#9211)
The apt install stage before this commit:

    0 upgraded, 391 newly installed, 0 to remove and 9 not upgraded.
    Need to get 261 MB of archives.

after:

    0 upgraded, 367 newly installed, 0 to remove and 9 not upgraded.
    Need to get 220 MB of archives.
2024-10-03 10:05:23 +03:00
Anastasia Lubennikova a72919e0ec fix typo in postgis build 2024-10-02 16:37:48 +01:00
Anastasia Lubennikova 5a195605ad Fix rdkit build 2024-10-02 15:45:24 +01:00
Anastasia Lubennikova 8d64d9cca4 Merge branch 'main' into enable_v17_extensions 2024-10-02 14:38:14 +01:00
Anastasia Lubennikova 321014d37a fix cgal version 2024-10-02 14:31:35 +01:00
Anastasia Lubennikova e410e794d6 Enable support of extensions for v17
except for Rust extensions and
ones that do not have new release yet.

Add comments for each extension.
2024-10-02 13:53:55 +01:00
Heikki Linnakangas 1b8b50755c Use debian packages for cmake again (#9212)
On bookworm, 'cmake' is new enough that we can just use it. On bullseye,
we can get a new-enough package from backports. By including 'cmake' in
the build-deps stage, we don't need to install it separately in all the
later build stages that need it.

See https://github.com/neondatabase/neon/pull/2699, where we switched to
downloading and building a specific version.
2024-10-01 15:09:09 +03:00
David Gomes d6c6b0a509 feat(compute): adds pg_session_jwt extension to compute image (#8888)
## Problem

We need the
[pg_session_jwt](https://github.com/neondatabase/pg_session_jwt/)
extension in the compute image. This PR adds it.

## Summary of changes

I added the `pg_session_jwt` extension in a very similar way to how the
pggraphql and pgtiktoken extensions were added (since they're all
written with pgrx). Then I tested this.

```
$ cd docker-compose/
$ PG_VERSION=16 TAG=10667533475 docker-compose up --build -d
$ psql postgresql://cloud_admin:cloud_admin@localhost:55433/postgres

cloud_admin@postgres=# create extension pg_session_jwt;
CREATE EXTENSION
Time: 43.048 ms

cloud_admin@postgres=# \df auth.*;
                              List of functions
┌────────┬──────────────────┬──────────────────┬─────────────────────┬──────┐
│ Schema │       Name       │ Result data type │ Argument data types │ Type │
├────────┼──────────────────┼──────────────────┼─────────────────────┼──────┤
│ auth   │ get              │ jsonb            │ s text              │ func │
│ auth   │ init             │ void             │ kid bigint, s jsonb │ func │
│ auth   │ jwt_session_init │ void             │ s text              │ func │
│ auth   │ user_id          │ text             │                     │ func │
└────────┴──────────────────┴──────────────────┴─────────────────────┴──────┘
(4 rows)

cloud_admin@postgres=# select auth.init(cast('1' as bigint), to_jsonb(TEXT '{ "kty": "EC", "kid": "571683be-33cf-4e67-bccc-8905c0ebb862", "crv": "P-521", "alg": "ES512", "x": "AM_GsnQvKML2yXdn_OsN8PdgO1Sf9XMXih5vQMKLmJkp-Iz_FFWJUt6uyR_qp4brr8Ji2kjGJgN4cQJpg2kskH7V", "y": "AZg-salw24lCmsBP-BCBa5jT6INkTwLtCOC7o0BIxDVvmIEH1-PQAJVYVJPTFvPMi_PLa0QlOm-ufJYkynwa2Mau" }'));
ERROR:  called `Result::unwrap()` on an `Err` value: Error("invalid type: string \"{ \\\"kty\\\": \\\"EC\\\", \\\"kid\\\": \\\"571683be-33cf-4e67-bccc-8905c0ebb862\\\", \\\"crv\\\": \\\"P-521\\\", \\\"alg\\\": \\\"ES512\\\", \\\"x\\\": \\\"AM_GsnQvKML2yXdn_OsN8PdgO1Sf9XMXih5vQMKLmJkp-Iz_FFWJUt6uyR_qp4brr8Ji2kjGJgN4cQJpg2kskH7V\\\", \\\"y\\\": \\\"AZg-salw24lCmsBP-BCBa5jT6INkTwLtCOC7o0BIxDVvmIEH1-PQAJVYVJPTFvPMi_PLa0QlOm-ufJYkynwa2Mau\\\" }\", expected struct JwkEcKey", line: 0, column: 0)
Time: 6.991 ms
```

## Checklist before requesting a review

- [x] I have performed a self-review of my code.
- [ ] If it is a core feature, I have added thorough tests.
- [ ] Do we need to implement analytics? if so did you add the relevant
metrics to the dashboard?
- [ ] If this PR requires public announcement, mark it with
/release-notes label and add several sentences in this section.

## Checklist before merging

- [ ] Move the download location to a proper URL
2024-10-01 10:29:56 +01:00
Heikki Linnakangas 65bda19051 Remove unnecessary dev package from compute image (#9210)
libcurl4-openssl-dev is needed to build pgxn/, but libcurl4 is enough at
runtime.
2024-10-01 01:07:43 +03:00
Matthias van de Meent c4f5736d5a Build images for PG17 using Debian 12 "Bookworm" (#9132)
This increases the support window of the OS used for PG17 by 2 years
compared to the previous usage of Debian 11 "Bullseye".
2024-09-25 17:50:05 +03:00
Heikki Linnakangas 3ad567290c Move metric exporter and pgbouncer config files
Instead of adding them to the VM image late in the build process, when
putting together the final VM image, include them in the earlier
compute image already. That makes it more convenient to edit the
files, and to test them.
2024-09-24 00:35:52 +03:00
Heikki Linnakangas 3a110e45ed Move files related to building compute image into compute/ dir
Seems nice to keep all these together. This also provides a nice place
for a README file to describe the compute image build process. For
now, it briefly describes the contents of the directory, but can be
expanded.
2024-09-24 00:35:52 +03:00