Re: Question about COPY command - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Question about COPY command
Date
Msg-id 49660596.5070001@iol.ie
Whole thread Raw
In response to Question about COPY command  ("Josh Harrison" <joshques@gmail.com>)
List pgsql-general
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
------------------------------------------------------------------

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Question about COPY command
Next
From: "Scott Marlowe"
Date:
Subject: Re: RCA for MemoryContextAlloc: invalid request size(Known Issue)