Skip site navigation (1) Skip section navigation (2)

Restoring sequence values

From: Bendik Rognlien Johansen <bendik(dot)johansen(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Restoring sequence values
Date: 2005-11-17 17:40:15
Message-ID: (view raw or whole thread)
Lists: pgsql-novice

Is there any way to restore the value of sequences when using  
pg_restore on a custom format (pg_dump -c) dump file?

Also is there an easy way to copy a database from one machine to  

I have tried using pg_dump/pg_restore, but this does not work well  
because the order of the objects get mixed up (Lots of foreign keys  
etc.) I have tried using a list file, but wading through hundreds of  
functions is tedious.



pgsql-novice by date

Next:From: Tom LaneDate: 2005-11-17 17:58:13
Subject: Re: Restoring sequence values
Previous:From: George WeaverDate: 2005-11-17 16:55:53
Subject: Re: Problem getting xml2 contrib module working with 8.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group