pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jivendra <soberdude.jivendra@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: copy cmd err
Date: Tue, 06 Dec 2011 11:54:48 -0500
Message-ID: <22376.1323190488@sss.pgh.pa.us> (raw)
In-Reply-To: <CANBoT0_64X3hFewRt97VGyA9P5V3-iSySChZpN9VhnAnVbRiiw@mail.gmail.com>
References: <CANBoT0_64X3hFewRt97VGyA9P5V3-iSySChZpN9VhnAnVbRiiw@mail.gmail.com>

Jivendra <soberdude.jivendra@gmail.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



view thread (2+ messages)

Message-ID: <22376.1323190488@sss.pgh.pa.us>
Permalink:  ../22376.1323190488@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22376.1323190488@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, soberdude.jivendra@gmail.com
  Subject: Re: copy cmd err
  In-Reply-To: <22376.1323190488@sss.pgh.pa.us>
  References: <CANBoT0_64X3hFewRt97VGyA9P5V3-iSySChZpN9VhnAnVbRiiw@mail.gmail.com> <22376.1323190488@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox