Re: Constructing a backup routine - Mailing list pgsql-sql

From Kovacs Zoltan
Subject Re: Constructing a backup routine
Date
Msg-id Pine.LNX.4.21.0112200939440.4809-100000@pc10.radnoti-szeged.sulinet.hu
Whole thread Raw
In response to Constructing a backup routine  (Johnny Jørgensen <pgsql@halfahead.dk>)
List pgsql-sql
In our production state system we usually do this:

$ pg_dump -xacnDO database_name | grep "^SELECT setval "

This gives SQL statements which can be reloaded into an arbitrary
database. A bit slow, IMHO a clever select on the system tables should
give you the same result much faster.

HTH, Zoltan

--                         Kov\'acs, Zolt\'an                        kovacsz@pc10.radnoti-szeged.sulinet.hu
          http://www.math.u-szeged.hu/~kovzol                        ftp://pc10.radnoti-szeged.sulinet.hu/home/kovacsz
 



pgsql-sql by date:

Previous
From: Archibald Zimonyi
Date:
Subject: Connections?
Next
From: Jan Wieck
Date:
Subject: Re: Connections?