COPY TO / COPY FROM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Here I am again with my 'stupd' question

here is a script :

=====================
psql -h192.168.XXX.XXX -dDATABASE -Upostgres << EOF  > /home/postgres/FILE
COPY TABLE TO stdout;
EOF

psql -h192.168.XXX.XXX -dDATABASE -Upostgres << EOF
COPY carax_exec_bck FROM '/home/postgres/FILE';
EOF
=======================

I got this error :
ERROR: could not open file "/home/postgres/FILE" for reading: No such file or directory

????

thx

cedric

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux