Skip to content

Conversation

@hunleyd
Copy link
Contributor

@hunleyd hunleyd commented Oct 14, 2025

What kind of change does this PR introduce?

Moved all config files that are included in the postgresql.conf into the /etc/postgresql-custom dir then updated postgresql.conf to use include_dir instead of include. To ensure the same ordering of the various GUCs (to ensure proper overriding of values), rename files with digits prepended.
Finally, split auto_explain and pg_cron out into their own config files instead of them being tacked on the end of the main PG config.

this is take 2, which should fix the supautils issue

hunleyd and others added 25 commits October 6, 2025 11:23
…dir' directive and move logging.conf into the postgresql-customer dir
* 'develop' of github.com:supabase/postgres: (29 commits)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1818)
  fix: update Dockerfiles for changes to postgis multiversion (#1817)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1813)
  feat: support multiple versions of the postgis extension (#1667)
  Update pgsql-http to handle semver (#1816)
  feat: add retry policy for auth service routes (#1782)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1811)
  fix: move tmpdir for SAA to one that always exists (#1799)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1810)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1809)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1807)
  build: automatically cancel old tests/build on new push (#1808)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1804)
  docs: small adjust (#1806)
  docs: getting started guide in README (#1805)
  fix: templating of SAA service file
  fix: adjust the qemu vars filename
  refactor(ansible): bring our ansible up to modern ansible-lint standards
  feat: support multiple versions of the http extension (#1664)
  feat: supply a slightly different supabase-admin-agent configuration for qemu artifacts
  ...
* origin/develop:
  fix(nix): remove '%' character from Nix trusted-public-keys configuration (#1840)
  chore: systemd hardening (#1837)
  Revert "refactor(postgresq): switch to 'include_dir' and then rename conf files to ensure ordering" (#1835)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1821)
  fix(pgmq): replace drop_queue function if exists (#1828)
  refactor(postgresq): switch to 'include_dir' and then renames conf files to ensure ordering (#1820)
  feat: support multiple versions of the pg_jsonschema extension (#1757)
  feat: bump auth to v2.180.0 (#1829)
  feat: update supautils confs w/ new tables
  feat(migrations): predefined role grants (#1815)
  feat: run pg_regress tests after installing the last version of the extension (#1826)
  fix(pgmq): add missing helper function in migration script (#1825)
  feat: support multiple versions of the pgmq extension (#1668)
  feat: run pg_regress during extension tests (#1812)
  feat: support multiple versions of the pgrouting extension (#1687)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1819)
  feat: support multiple versions of the pg-graphql extension (#1761)
* fix: refactor tests to work with include_dir approach
and be more accurate with production conditions

* tests: use distinct savepoint names in test
* origin:
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1852)
  chore: bump to release (#1855)
  docs: getting started nix install or config revised (#1853)
  docs: how to update new structure (#1851)
  feat: support multiple versions of the plpgsql_check extension (#1684)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1848)
  feat(wrappers): support more versions (#1831)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1833)
  fix: fine tune protection rules to unblock wal-g functionality (#1846)
  fix: incorporate v3.0.0 supautils (#1844)
  fix: remove git revision from postgres package
@samrose
Copy link
Collaborator

samrose commented Oct 23, 2025

@hunleyd this is still in draft mode of course. But requesting that once we are ready for review, we need @soedirgo @steve-chavez @za-arthur and myself to review before we merge and deploy just due to all of the changes.

@hunleyd hunleyd changed the title refactor(postgresql.conf): configure postgresql.conf to use 'include_…dir' directive and move logging.conf into the postgresql-customer dir refactor(postgresql.conf): configure postgresql.conf to use 'include_…dir' directive Oct 29, 2025
hunleyd and others added 16 commits October 29, 2025 11:55
* origin/develop:
  feat: support multiple versions of the plv8 extension (#1676)
  chore: bump wrappers version 0.5.6 (#1877)
  feat: support multiple versions of the pg_hashids extension (#1755)
* origin:
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1869)
* origin:
  feat: enable GitHub merge queues (#1849)
…-152

* 'INDATA-152' of github.com:supabase/postgres:
  fix: change trigger to `merge_group` in "Release Migrations - Staging / build (push)" workflow (#1884)
  tests: newline readme (#1883)
* origin:
  fix: we won't deploy this newest version of plv8 yet (#1885)
…-152

* 'INDATA-152' of github.com:supabase/postgres:
  Revert "test(pg_regress): update expected output for pg15 plv8"
@hunleyd hunleyd marked this pull request as ready for review November 2, 2025 01:50
@hunleyd hunleyd requested review from a team as code owners November 2, 2025 01:50
Copy link
Collaborator

@samrose samrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to run through a multi step testing checklist with @jchancojr prior to merging this

Basically

specific pg_regress tests for configuration

local infra testing of pause/restore, upgrade to this image, overall functionality

Run through internal integration of image

A few review items from Sam on this PR that will be added to the actual PR here

@jchancojr
Copy link
Contributor

getting supautils related errors

postgres@db-wfcgdcogpuhyxlzxaiur:~$ psql
WARNING:  invalid configuration parameter name "supautils.disable_program", removing it
DETAIL:  "supautils" is now a reserved prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants