pgsql: ecpg: Restore detection of unsupported COPY FROM STDIN.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: ecpg: Restore detection of unsupported COPY FROM STDIN.
Date: 2025-01-14 16:29:04
Message-ID: E1tXjmq-001XY2-63@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

ecpg: Restore detection of unsupported COPY FROM STDIN.

The ecpg command includes code to warn about unsupported COPY FROM STDIN
statements in input files. However, since commit 3d009e45bd,
this functionality has been broken due to a bug introduced in that commit,
causing ecpg to fail to detect the statement.

This commit resolves the issue, restoring ecpg's ability to detect
COPY FROM STDIN and issue a warning as intended.

Back-patch to all supported versions.

Author: Ryo Kanbayashi
Reviewed-by: Hayato Kuroda, Tom Lane
Discussion: https://postgr.es/m/CANOn0Ez_t5uDCUEV8c1YORMisJiU5wu681eEVZzgKwOeiKhkqQ@mail.gmail.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d06ab3c0c1179e522812d0e25d63dcc7dcab3c9a

Modified Files
--------------
src/interfaces/ecpg/preproc/ecpg.addons | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2025-01-14 16:29:16 pgsql: ecpg: Restore detection of unsupported COPY FROM STDIN.
Previous Message Fujii Masao 2025-01-14 16:28:44 pgsql: ecpg: Restore detection of unsupported COPY FROM STDIN.