RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”

Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>

From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: "Masashi Kamura (Fujitsu)" <kamura.masashi@fujitsu.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, 'lakshmi' <lakshmigcdac@gmail.com>
Date: 2026-04-27T02:39:42Z
Lists: pgsql-hackers
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. 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 marked the thread "Ready for Committer".

Best regards,
Hayato Kuroda
FUJITSU LIMITED

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. ecpg: Reject multiple header items in GET/SET DESCRIPTOR