Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler
Date: 2026-03-18 19:29:58
Message-ID: abr9Nhe8UOdoN10L@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jeff Davis 2026-03-18 20:40:38 Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler
Previous Message Jeff Davis 2026-03-18 19:09:54 ALTER FOREIGN DATA WRAPPER can drop dependency on handler