Обсуждение: EXPORT / IMPORT

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

EXPORT / IMPORT

От
"Freddy Villalba Arias"
Дата:

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
Дата:
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
Дата:
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