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

FDN-2062: Add support for Postgres 15 #23

Merged
merged 2 commits into from
Feb 2, 2024
Merged

FDN-2062: Add support for Postgres 15 #23

merged 2 commits into from
Feb 2, 2024

Conversation

nicolagi
Copy link
Contributor

@nicolagi nicolagi commented Feb 1, 2024

In Postgres 15, the pg_class table does not have relhasoids, so
Partman's code from this repository does not work in Postgres 15.
None of our tables were created WITH OIDS, according to the query
shown here and grepping the source code, so just removing the part
that checks for OIDS will work. (This code that I'm removing hasn't
been completely removed in recent versions of Partman, but it is
guarded by a version check.)

The change to journal.quote_column reflects type changes from
Postgres 11 to Postgres 15, but also works against Postgres 11 (as
in, this package still builds fine against PG 11 with this change).

The install script needs to grant permissions to the public schema
in Postgres 15.

An additional Dockerfile-15 has been added to create a Postgres 15
based image. The Travis configuration has been updated to build that
image.

New scripts have been added to recreate the modified functions in
production:

  • journal.quote_column
  • partman.create_partition_id
  • partman.create_partition_time

nicolagi and others added 2 commits February 1, 2024 17:39
In Postgres 15, the `pg_class` table does not have `relhasoids`, so
Partman's code from this repository does not work in Postgres 15.
None of our tables were created WITH OIDS, according to the query
shown here and grepping the source code, so just removing the part
that checks for OIDS will work. (This code that I'm removing hasn't
been completely removed in recent versions of Partman, but it is
guarded by a version check.)

The change to `journal.quote_column` reflects type changes from
Postgres 11 to Postgres 15, but also works against Postgres 11 (as
in, this package still builds fine against PG 11 with this change).

The install script needs to grant permissions to the public schema
in Postgres 15.

An additional `Dockerfile-15` has been added to create a Postgres 15
based image. The Travis configuration has been updated to build that
image.

New scripts have been added to recreate the modified functions in
production:
- `journal.quote_column`
- `partman.create_partition_id`
- `partman.create_partition_time`

[so]: https://stackoverflow.com/questions/70257495/postgresql-how-can-i-check-if-table-was-created-with-oids
@gheine gheine merged commit ffe97c4 into main Feb 2, 2024
2 checks passed
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.

2 participants