Re: Extension security improvement: Add support for extensions with an owned schema
Jelte Fennema-Nio <me@jeltef.nl>
From: Jelte Fennema-Nio <me@jeltef.nl>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-06-20T11:18:03Z
Lists: pgsql-hackers
Attachments
- v3-0001-Add-support-for-extensions-with-an-owned-schema.patch (application/octet-stream) patch v3-0001
On Wed, 19 Jun 2024 at 17:22, David G. Johnston <david.g.johnston@gmail.com> wrote: > > On Wed, Jun 19, 2024 at 8:19 AM Jelte Fennema-Nio <me@jeltef.nl> wrote: > >> >> Because part of it would >> only be relevant once we support upgrading from PG18. So for now the >> upgrade_code I haven't actually run. > > > Does it apply against v16? If so, branch off there, apply it, then upgrade from the v16 branch to master. I realized it's possible to do an "upgrade" with pg_upgrade from v17 to v17. So I was able to test both the pre and post PG18 upgrade logic manually by changing the version in this line: if (fout->remoteVersion >= 180000) As expected the new pg_upgrade code was severely broken. Attached is a new patch where the pg_upgrade code now actually works.