From f3616d35bbe2646bde5ac68e3cfa23ef7a2ddf67 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Nov 2026 19:34:54 +0100 Subject: [PATCH] feat: add PostgreSQL 19 variant PostgreSQL 19.0 shipped on 2026-11-19 and pgvector 0.8.7 builds against it (upstream CI passes on PG 19, PGDG ships postgresql-19-pgvector). The old comment blocking this variant referenced pgvector 0.8.2 and the 19.b3 betas. The pgvector port has no binary package for PG 19 yet (the FreeBSD package repository only builds the default PGSQL_DEFAULT flavor), so Containerfile.pkg compiles databases/pgvector from the ports tree with DEFAULT_VERSIONS+=pgsql=19, as it already does for the other majors. --- .daemonless/config.yaml | 12 +++++++----- README.md | 39 ++++++++++++++++++++++++--------------- 2 files changed, 31 insertions(+), 20 deletions(-) diff --git a/.daemonless/config.yaml b/.daemonless/config.yaml index d9c5651..f0715de 100644 --- a/.daemonless/config.yaml +++ b/.daemonless/config.yaml @@ -45,8 +45,10 @@ build: BASE_VERSION: "15-latest" aliases: ["18", "latest", "pkg", "pkg-latest"] default: true - # 19 is intentionally absent: postgresql19-server (19.b3) installs fine, - # but the pgvector 0.8.2 port fails to compile against it -- PG19 moved the - # core internals it relies on (LWLock, slock_t, ConditionVariable, Page, - # AddinShmemInitLock) out of postgres.h's transitive includes. Re-add once - # pgvector supports PG19 and 19.0 ships. + - tag: "19-pkg-latest" + pkg_name: postgresql19-server + containerfile: Containerfile.pkg + args: + PG_VERSION: "19" + BASE_VERSION: "15-latest" + aliases: ["19"] diff --git a/README.md b/README.md index a1cf3ca..8ccf303 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,27 @@ The World's Most Advanced Open Source Relational Database on FreeBSD. | **Source** | [https://www.postgresql.org/](https://www.postgresql.org/) | | **Website** | [https://www.postgresql.org/](https://www.postgresql.org/) | -## Version Tags -| Tag | Description | Best For | -| :--- | :--- | :--- | -| `14` / `14-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | -| `15` / `15-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | -| `16` / `16-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | -| `17` / `17-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | -| `18` / `18-pkg-latest` / `latest` / `pkg` / `pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | +## Init scripts + +On first start (empty data directory), files in `/docker-entrypoint-initdb.d/` +run in name order: `*.sh` (run if executable, else sourced), `*.sql` and +`*.sql.gz`. They run as `bsd`, not as root, and connect as +`POSTGRES_USER`, the superuser that owns the databases. ## Prerequisites + Before deploying, ensure your host environment is ready. See the [Quick Start Guide](https://daemonless.io/guides/quick-start) for host setup instructions. ## Deployment +### Fjord + +Install and manage **PostgreSQL** on FreeBSD with [fjord](https://fjord.daemonless.io): + +```bash +fjord install postgres +``` + ### Podman Compose ```yaml @@ -191,13 +198,15 @@ Save as `bastille-compose.yml`, then run `bastille up`. |------|----------|-------------| | `5432` | TCP | PostgreSQL port | -## Init scripts - -On first start (empty data directory), files in `/docker-entrypoint-initdb.d/` -run in name order: `*.sh` (run if executable, else sourced), `*.sql` and -`*.sql.gz`. They run as `bsd`, not as root, and connect as -`POSTGRES_USER`, the superuser that owns the databases. - +## Version Tags +| Tag | Description | Best For | +| :--- | :--- | :--- | +| `14` / `14-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | +| `15` / `15-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | +| `16` / `16-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | +| `17` / `17-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | +| `18` / `18-pkg-latest` / `latest` / `pkg` / `pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | +| `19` / `19-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. | **Architectures:** amd64, aarch64 **User:** `bsd` (UID/GID via PUID/PGID, defaults to 1000:1000)