On 08/01/2009 13:39, Josh Harrison wrote:
> What is the difference between copying from 'filename' and copying from 'stdin' ???
You'll see COPY from stdin in pg_dump scripts - when restoring via psql,
the entire input to psql is coming from stdin, so COPY FROM stdin tells
it to expect the data from there also.
COPY FROM <filename> tells it to take the input from an external disk file.
Ray.
------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------