duplicate columns with COPY

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: duplicate columns with COPY
Date: 2007-12-20 13:28:30
Message-ID: 200712201428.30976.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there a reason why COPY TO STDOUT does not allow columns to be specified
more than once?

pei=# copy test1 (a, a) to stdout;
ERROR: 42701: column "a" specified more than once

Or is this just an overly extensive check that is actually intended for COPY
FROM STDIN?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-12-20 14:01:47 Re: duplicate columns with COPY
Previous Message Magnus Hagander 2007-12-20 12:58:14 Re: pgwin32_open returning EINVAL