EXPORT / IMPORT

Поиск
Список
Период
Сортировка
Искать

EXPORT / IMPORT

От:
"Freddy Villalba Arias" <fvillalba@madrid.bilbomatica.es>
Дата:

Hello,

 

Is there a simple way to generate an export / import script in PostgreSQL (i.e. a script that contains INSERT statements for every row in a table) ???

 

COPY is NOT a good option (personal opinion).

 

I’m using pgAdmin3 but it does not offer this (quite disappointing, may I say).

 

Thanx,

Freddy.

Re: EXPORT / IMPORT

От:
Jerome Alet <alet@librelogiciel.com>
Дата:
On Fri, May 07, 2004 at 10:20:52AM +0200, Freddy Villalba Arias wrote:
> 
> Is there a simple way to generate an export / import script in
> PostgreSQL (i.e. a script that contains INSERT statements for every row
> in a table) ???

pg_dump

bye

Jerome Alet

Re: EXPORT / IMPORT

От:
Andrew Sullivan <ajs@crankycanuck.ca>
Дата:
On Fri, May 07, 2004 at 10:20:52AM +0200, Freddy Villalba Arias wrote:
> 
> Is there a simple way to generate an export / import script in
> PostgreSQL (i.e. a script that contains INSERT statements for every row
> in a table) ???
> 
> COPY is NOT a good option (personal opinion).

pg_dump -d or -D.  Note that restoring from this is going to be a
whole lot slower than restoring from a COPY based dump.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca

FAQ