Backup and restore sequences - Mailing list pgsql-general

From gvim
Subject Backup and restore sequences
Date
Msg-id 4D273557.40900@gmail.com
Whole thread Raw
Responses Re: Backup and restore sequences  (Adrian Klaver <adrian.klaver@gmail.com>)
Re: Backup and restore sequences  (Alan Hodgson <ahodgson@simkin.ca>)
List pgsql-general
PostgreSQL 9.0.1/pgAdminIII 1.12.1

I want to copy selected tables from one database to another and maintain the sequences which I originally setup with:

CREATE SEQUENCE venues_id_seq START WITH 1122;
ALTER TABLE venues ALTER COLUMN id SET DEFAULT nextval('venues_id_seq');

... along with their current values, which have been augmented since the database was setup. When I backup via
pgAdminIIIthe sequences are not even included. I also can't find anything in: 

man pg_dump

... which specifies sequences.

gvim


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Inserting data from one database to another using stored functions
Next
From: Adrian Klaver
Date:
Subject: Re: Backup and restore sequences