public inbox for [email protected]
help / color / mirror / Atom feedFrom: Nathan Bossart <[email protected]>
To: Jeff Davis <[email protected]>
Cc: [email protected]
Subject: Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler
Date: Wed, 18 Mar 2026 14:29:58 -0500
Message-ID: <abr9Nhe8UOdoN10L@nathan> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Wed, Mar 18, 2026 at 12:09:54PM -0700, Jeff Davis wrote:
> --- a/src/backend/commands/foreigncmds.c
> +++ b/src/backend/commands/foreigncmds.c
> @@ -786,6 +786,11 @@ AlterForeignDataWrapper(ParseState *pstate, AlterFdwStmt *stmt)
> ereport(WARNING,
> (errmsg("changing the foreign-data wrapper handler can change behavior of existing foreign tables")));
> }
> + else
> + {
> + /* handler unchanged */
> + fdwhandler = fdwForm->fdwhandler;
> + }
This matches what we do for the validator a few lines down, so it makes
sense to me. Could it be worth adding a test or two?
--
nathan
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler
In-Reply-To: <abr9Nhe8UOdoN10L@nathan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox