From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, a(dot)kozhemyakin(at)postgrespro(dot)ru |
Subject: | Re: ALTER TYPE vs extension membership (was Re: BUG #17144: Upgrade from v13 to v14 with the cube extension failed) |
Date: | 2021-08-17 11:22:33 |
Message-ID: | 20210817112233.tiheqcydqf4bariw@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
Hi,
On 2021-08-16 15:36:59 -0400, Tom Lane wrote:
> There's a policy question here, which is when does an operation on
> a pre-existing object within an extension script cause the object
> to be absorbed into the extension? You might naively say "never",
> but that's not our historical behavior, and I think it'd clearly
> be the wrong thing in some cases. For example, consider
>
> CREATE TYPE cube; -- make a shell type
> -- do something that requires type cube to exist
> CREATE EXTENSION cube;
>
> We don't want this to fail, because it might be necessary to do
> things that way to get out of circular dependencies.
In what scenario would that be a good way to address a circular
dependency? ISTM that whatever depends on $ext should be using shell
types or such to avoid the circular dependency, then create $ext. Rather
than creating shell types for object in $ext and then create $ext.
> Another point that perhaps deserves discussion is whether it's
> okay to change the signature of GenerateTypeDependencies in
> stable branches (we need to fix this in v13 not only v14/HEAD).
> I can't see a good reason for extensions to be calling that,
> and codesearch.debian.net knows of no outside callers, so I'm
> inclined to just change it. If anyone thinks that's too risky,
> we could do something with a wrapper function in v13.
Seems OK to not bother with a wrapper to me - I can't see a reason
either.
Greetings,
Andres Freund
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-08-17 13:35:50 | Re: ALTER TYPE vs extension membership (was Re: BUG #17144: Upgrade from v13 to v14 with the cube extension failed) |
Previous Message | Daniel Gustafsson | 2021-08-17 11:06:12 | Re: BUG #17148: About --no-strict-names option and --quiet option of pg_amcheck command |
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2021-08-17 11:30:18 | Re: Autovacuum on partitioned table (autoanalyze) |
Previous Message | Ranier Vilela | 2021-08-17 11:13:35 | Re: Fix uninitialized variable access (src/backend/utils/mmgr/freepage.c) |