Re: Add more sanity checks around callers of changeDependencyFor()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
Heikki Linnakangas <hlinnaka@iki.fi>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-07-10T14:51:24Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes: > On Thu, Jul 06, 2023 at 10:09:20AM -0700, Andres Freund wrote: >> I also don't think pg_dump will dump the changed schema, which means a >> dump/restore leads to a different schema - IMO something to avoid. > Yes, you're right here. The function dumped is restored in the same > schema as the extension. Actually, I think the given example demonstrates pilot error rather than a bug. The user has altered properties of an extension member object locally within the database, but has not changed the extension's installation script to match. The fact that after restore, the object does again match the script is intended behavior. We've made some exceptions to that rule for permissions, but not anything else. I don't see a reason to consider the objects' schema assignments differently from other properties for this purpose. regards, tom lane
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add more sanity checks with callers of changeDependencyFor()
- 9b286858e3ab 17.0 landed
-
Fix ALTER EXTENSION SET SCHEMA with objects outside an extension's schema
- 914e72e6e8d3 11.21 landed
- 02021f1b2f65 12.16 landed
- f5b075adcf4c 13.12 landed
- 235e716bc24d 14.9 landed
- d1e0f408cbe2 15.4 landed
- 55c95f24cd7c 16.0 landed
- bd5ddbe8666a 17.0 landed