Re: syntax error while using pg_dump in Postgres 8.4 - Mailing list pgsql-general

From David G Johnston
Subject Re: syntax error while using pg_dump in Postgres 8.4
Date
Msg-id 1414687959261-5825056.post@n5.nabble.com
Whole thread Raw
List pgsql-general
CrabbeS wrote
> I am trying to copy a table form one database to another by using this
> command in the SQL-query builder:
> pg_dump TA2000 -t from Forest -c -s | psql -h localhost postgis;

pg_dump is a standalone application (i.e., something you run in a
shell/command-line) and not an SQL command.

Pipes (the "|" in your string) are also shell/command-line only and cannot
be used where SQL is expected.

David J.




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/syntax-error-while-using-pg-dump-in-Postgres-8-4-tp5825054p5825056.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Appending new data to existing field of Json data type
Next
From: VENKTESH GUTTEDAR
Date:
Subject: Re: Appending new data to existing field of Json data type