"COPY foo FROM STDOUT" and ecpg - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject "COPY foo FROM STDOUT" and ecpg
Date
Msg-id 512CD122.4050007@vmware.com
Whole thread Raw
Responses Re: "COPY foo FROM STDOUT" and ecpg  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: "COPY foo FROM STDOUT" and ecpg  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
While looking at Fujita Etsuro's patch to allow copy to/from a shell
command, I noticed that the grammar currently allows these:

COPY foo FROM STDOUT
COPY foo TO STDIN

In other words, STDIN and STDOUT can be used completely interchangeably.
However, the ecpg grammar is more strict about that:

ERROR: COPY TO STDIN is not possible

Any particular reason for ecpg to check that, while the backend doesn't
care? I think we should just remove those checks from the ecpg grammar.

- Heikki

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: PGXS contrib builds broken?
Next
From: Fujii Masao
Date:
Subject: pg_xlogdump compile error