Re: "COPY foo FROM STDOUT" and ecpg

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: "COPY foo FROM STDOUT" and ecpg
Date: 2013-02-26 17:24:44
Message-ID: 512CEFDC.2060200@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-02-26 17:24:53 Re: pg_xlogdump
Previous Message Peter Geoghegan 2013-02-26 17:24:25 Re: pg_xlogdump