Re: (Mis?)Behavior of \copy with -f and \i

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mark Feit <mfeit+postgresql(at)notonthe(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: (Mis?)Behavior of \copy with -f and \i
Date: 2004-01-04 18:07:11
Message-ID: 200401041907.11326.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Feit wrote:
> Peter Eisentraut declared that from that point on, stdin would be
> whatever stream the \copy command came from. I'd like to propose a
> variant on the "FROM" clause which makes good on Peter's declaration
> without breaking anything already using FROM STDIN and expecting it
> to really read from stdin. (I think this is for the better because
> there are lots of good uses for "psql -f foo.sql < foo.dat".)
>
> I'd be more than happy to write and test a patch if folks think this
> would be a good thing. I'm leaning toward "FROM -" as the syntax but
> am open to other ideas (i.e., "FROM HERE" or "FROM INPUT").

I'm not sure about the proposed syntax, but the feature sounds quite
reasonable.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2004-01-04 18:17:59 Re: [COMMITTERS] pgsql-server/doc/src/sgml Tag: REL7_4_STABLE r ...
Previous Message Tom Lane 2004-01-04 17:33:01 Re: time format