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

From Heikki Linnakangas
Subject Re: "COPY foo FROM STDOUT" and ecpg
Date
Msg-id 512CEFDC.2060200@vmware.com
Whole thread Raw
In response to Re: "COPY foo FROM STDOUT" and ecpg  (Michael Meskes <meskes@postgresql.org>)
Responses Re: "COPY foo FROM STDOUT" and ecpg
List pgsql-hackers
On 26.02.2013 18:58, Michael Meskes wrote:
> On Tue, Feb 26, 2013 at 05:13:38PM +0200, Heikki Linnakangas wrote:
>> 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.
>
> IIRC this check was added because the check for "COPY FROM STDIN" had to added
> anyway. Since you left that one in, the patch is fine by me, although I still
> don't see a reason for it.

Just less code to maintain. And it's strange to forbid something in ecpg 
grammar that the backend accepts, as a matter of principle.

- Heikki



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pg_xlogdump
Next
From: Robert Haas
Date:
Subject: Re: pg_xlogdump