Skip to content

Conversation

@samrose
Copy link
Collaborator

@samrose samrose commented Oct 22, 2025

refactor of pg_partman to include multiversion support, switching script, update of tests

PSQL-303

@encima encima mentioned this pull request Oct 23, 2025
1 task
@encima
Copy link
Member

encima commented Nov 4, 2025

pg_partman has a 5.3.1 release that could be worth moving to before merging (solves some uuidv7 things and better 17/18 compat)

@jfroche jfroche force-pushed the multi-version-ext/pg-partman branch from 3873c38 to b7c2a75 Compare November 17, 2025 23:29
@encima
Copy link
Member

encima commented Nov 24, 2025

@jfroche was/is there a reason to rename the background worker for the shared library? It is likely best to keep the path the same so it does not deviate from the docs

@jfroche jfroche force-pushed the multi-version-ext/pg-partman branch from 3d868ce to 5c57d27 Compare November 24, 2025 19:03
@jfroche jfroche marked this pull request as ready for review November 24, 2025 19:03
@jfroche jfroche requested review from a team as code owners November 24, 2025 19:03
@jfroche jfroche force-pushed the multi-version-ext/pg-partman branch from 5c57d27 to d199683 Compare November 24, 2025 19:09
@jfroche
Copy link
Collaborator

jfroche commented Nov 24, 2025

@jfroche was/is there a reason to rename the background worker for the shared library? It is likely best to keep the path the same so it does not deviate from the docs

I didn't realize the project was using different names for the library and the extension. I have adapted the code for that in d199683

@jfroche jfroche self-assigned this Nov 24, 2025
@encima
Copy link
Member

encima commented Dec 3, 2025

Tested:

  • Studio shows extension
  • Upgrade from 15 to 17
  • Read Replicas
image

@samrose samrose enabled auto-merge December 3, 2025 22:50
@samrose samrose force-pushed the multi-version-ext/pg-partman branch from 5d05d9e to e560b44 Compare December 4, 2025 12:07
@samrose samrose added this pull request to the merge queue Dec 4, 2025
Merged via the queue into develop with commit d783997 Dec 4, 2025
33 of 36 checks passed
@samrose samrose deleted the multi-version-ext/pg-partman branch December 4, 2025 16:45
hunleyd added a commit that referenced this pull request Dec 5, 2025
* origin:
  feat: Ensure postgres conf.d directory is set up (#1961)
  Multi version ext/pg partman (#1854)
hunleyd added a commit that referenced this pull request Dec 5, 2025
* origin:
  feat: Ensure postgres conf.d directory is set up (#1961)
  Multi version ext/pg partman (#1854)
yvan-sraka pushed a commit that referenced this pull request Dec 7, 2025
* feat: pg_partman all major versions

* wip: stage pg_partman multi-version changes

* add tests for pg_partman

* add tests for pg_partman

* add partman to local tests. remove from initial schema

* add hypertable to partman test

* feat: multiversion pg_partman

* update v15 schema

* Add nixos test for pg_partman extension

Run upgrade and pg_regress tests for pg_partman extension in NixOS tests.

* add 5.3.1 version for partman

* fix: remove old pg_partman version and fix pg_regress outputs

* fix(pg_partman): use correct library name for background worker

The pg_partman extension uses a different library name (pg_partman_bgw) than its extension name (pg_partman). This change separates the library name from the extension name to properly handle the background worker library installation and version switching.

* chore: bump again to release

---------

Co-authored-by: Chris Gwilliams <[email protected]>
Co-authored-by: Jean-François Roche <[email protected]>
yvan-sraka pushed a commit that referenced this pull request Dec 8, 2025
* feat: pg_partman all major versions

* wip: stage pg_partman multi-version changes

* add tests for pg_partman

* add tests for pg_partman

* add partman to local tests. remove from initial schema

* add hypertable to partman test

* feat: multiversion pg_partman

* update v15 schema

* Add nixos test for pg_partman extension

Run upgrade and pg_regress tests for pg_partman extension in NixOS tests.

* add 5.3.1 version for partman

* fix: remove old pg_partman version and fix pg_regress outputs

* fix(pg_partman): use correct library name for background worker

The pg_partman extension uses a different library name (pg_partman_bgw) than its extension name (pg_partman). This change separates the library name from the extension name to properly handle the background worker library installation and version switching.

* chore: bump again to release

---------

Co-authored-by: Chris Gwilliams <[email protected]>
Co-authored-by: Jean-François Roche <[email protected]>
yvan-sraka pushed a commit that referenced this pull request Dec 8, 2025
* feat: pg_partman all major versions

* wip: stage pg_partman multi-version changes

* add tests for pg_partman

* add tests for pg_partman

* add partman to local tests. remove from initial schema

* add hypertable to partman test

* feat: multiversion pg_partman

* update v15 schema

* Add nixos test for pg_partman extension

Run upgrade and pg_regress tests for pg_partman extension in NixOS tests.

* add 5.3.1 version for partman

* fix: remove old pg_partman version and fix pg_regress outputs

* fix(pg_partman): use correct library name for background worker

The pg_partman extension uses a different library name (pg_partman_bgw) than its extension name (pg_partman). This change separates the library name from the extension name to properly handle the background worker library installation and version switching.

* chore: bump again to release

---------

Co-authored-by: Chris Gwilliams <[email protected]>
Co-authored-by: Jean-François Roche <[email protected]>
yvan-sraka pushed a commit that referenced this pull request Dec 8, 2025
* feat: pg_partman all major versions

* wip: stage pg_partman multi-version changes

* add tests for pg_partman

* add tests for pg_partman

* add partman to local tests. remove from initial schema

* add hypertable to partman test

* feat: multiversion pg_partman

* update v15 schema

* Add nixos test for pg_partman extension

Run upgrade and pg_regress tests for pg_partman extension in NixOS tests.

* add 5.3.1 version for partman

* fix: remove old pg_partman version and fix pg_regress outputs

* fix(pg_partman): use correct library name for background worker

The pg_partman extension uses a different library name (pg_partman_bgw) than its extension name (pg_partman). This change separates the library name from the extension name to properly handle the background worker library installation and version switching.

* chore: bump again to release

---------

Co-authored-by: Chris Gwilliams <[email protected]>
Co-authored-by: Jean-François Roche <[email protected]>
yvan-sraka pushed a commit that referenced this pull request Dec 8, 2025
* feat: pg_partman all major versions

* wip: stage pg_partman multi-version changes

* add tests for pg_partman

* add tests for pg_partman

* add partman to local tests. remove from initial schema

* add hypertable to partman test

* feat: multiversion pg_partman

* update v15 schema

* Add nixos test for pg_partman extension

Run upgrade and pg_regress tests for pg_partman extension in NixOS tests.

* add 5.3.1 version for partman

* fix: remove old pg_partman version and fix pg_regress outputs

* fix(pg_partman): use correct library name for background worker

The pg_partman extension uses a different library name (pg_partman_bgw) than its extension name (pg_partman). This change separates the library name from the extension name to properly handle the background worker library installation and version switching.

* chore: bump again to release

---------

Co-authored-by: Chris Gwilliams <[email protected]>
Co-authored-by: Jean-François Roche <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants