Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.” - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
Date
Msg-id CAHGQGwE9C_X4=bWFyLA_UGuajOMJufxxut-WSTXuUtr33xkswA@mail.gmail.com
Whole thread
In response to RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”  ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>)
List pgsql-hackers
On Mon, Apr 27, 2026 at 11:39 AM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:
>
> Hi hackers,
>
> Overall: The author found the case pre-compilation could succeed but the actual
> compilation would fail, with SET/GET DESCRIPTOR. This patch tries to detect the
> pre-compilation phase and raise a failure.

The patch looks good to me.
Barring any objections, I'm thinking to commit it.

> Based on the SQL standard/other
> DBMSs/history, it's not meaningful to allow the statement.
> This does not contain tests because we cannot compile such a test program in the
> first place.

I'm not sure this case warrants regression tests, but if we need them,
the attached patch adds them.

Regards,

--
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Bound memory usage during manual slot sync retries
Next
From: Amit Kapila
Date:
Subject: Re: POC: enable logical decoding when wal_level = 'replica' without a server restart