pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
copy cmd err
2+ messages / 2 participants
[nested] [flat]

* copy cmd err
@ 2011-12-06 07:09  Jivendra <soberdude.jivendra@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jivendra @ 2011-12-06 07:09 UTC (permalink / raw)
  To: pgsql-bugs

Helo

After running below command am getting error
had run this command before but now am not able to run it

any suggestion  ?

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


ERROR:  syntax error at or near "(" at character 6
LINE 1: COPY (SELECT * from function_name (2, 0, '2011-08-29','2011...

Thanx
-- 
....☺ııllllııllıı ✉ j!ℓℯñ ✉ lıllllııll☺....

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: copy cmd err
@ 2011-12-06 16:54  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Jivendra <soberdude.jivendra@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2011-12-06 16:54 UTC (permalink / raw)
  To: Jivendra <soberdude.jivendra@gmail.com>; +Cc: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-12-06 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-06 07:09 copy cmd err Jivendra <soberdude.jivendra@gmail.com>
2011-12-06 16:54 ` Tom Lane <tgl@sss.pgh.pa.us>

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