From: | ashish <ashish(dot)karalkar(at)netcore(dot)co(dot)in> |
---|---|
To: | ajcity <victor(dot)aluko(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Need help on how to backup a table |
Date: | 2008-03-28 09:47:58 |
Message-ID: | 47ECBECE.9090008@netcore.co.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
ajcity wrote:
> If I wanted to use that with a command like "COPY (SELECT * FROM country
> WHERE country_name LIKE 'A%') TO '<filename>'; " do I specify the file
> location for the remote machine as the <filename> or do I specify the
> location for local machine?
> And what if the psql clients are different (local: 8.1.5 remote:8.2.6)?
>
> Thanks
> Victor
>
>
from remote m/c
psql -h some_hostname -c "copy temp to stdout" -Upostgres postgres >
temp.txt
Will create temp file on the m/c from which u r firing the command .
With regards
Ashish
===================================================================
sms START NETCORE to 575758 to get updates on Netcore's enterprise
products and services
sms START MYTODAY to 09845398453 for more information on our mobile
consumer services or go to http://www.mytodaysms.com
===================================================================
From | Date | Subject | |
---|---|---|---|
Next Message | ajcity | 2008-03-28 10:01:43 | Re: Need help on how to backup a table |
Previous Message | Craig Ringer | 2008-03-28 09:43:00 | Re: dunction issue |