Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler

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

On Wed, 2026-03-18 at 14:29 -0500, Nathan Bossart wrote:
> 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?

Added a test.

Testing in the other direction (adding HANDLER and leaving VALIDATOR
unspecified, then dropping the validator) is slightly more complex
because I don't want to drop the built-in postgresql_fdw_validator. But
the patch in the other thread can be extended with a new test or two
also, which will cover that case.

Will backport all the way.

Regards,
Jeff Davis

Attachment Content-Type Size
v2-0001-Fix-dependency-on-FDW-handler.patch text/x-patch 3.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nathan Bossart 2026-03-18 21:41:37 Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler
Previous Message Nathan Bossart 2026-03-18 19:29:58 Re: ALTER FOREIGN DATA WRAPPER can drop dependency on handler