Re: copy cmd err

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jivendra <soberdude(dot)jivendra(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: copy cmd err
Date: 2011-12-06 16:54:48
Message-ID: 22376.1323190488@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jivendra <soberdude(dot)jivendra(at)gmail(dot)com> writes:
> Server Ver : psql (PostgreSQL) 8.1.11
> OS Platform : Red Hat Enterprise Linux Server release 5.3 (Tikanga)

> COPY (SELECT * from function_name (2, 0, 'yyyy-mm-dd','yyyy-mm-dd')) TO
> STDOUT

That COPY syntax doesn't exist in PG 8.1 --- the option to have a
parenthesized query as the source was added in 8.2.

Even within the RHEL5 world, 8.1.11 is mighty obsolete. Red Hat is
currently shipping 8.1.23, or you can get 8.4.x in the postgresql84
package set, or you could use Devrim's packages if you don't feel
a need to be all-Red-Hat.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message eboisen 2011-12-06 19:47:35 BUG #6329: ODBC ANSI driver psqlODBC v09.00.0310.1
Previous Message Kevin Grittner 2011-12-06 16:37:45 Re: BUG #6328: Wrong error message for insert-sql