pg_dump question - Mailing list pgsql-general

From linhluong@canada.com
Subject pg_dump question
Date
Msg-id 200405311030.24764.linhluong@canada.com
Whole thread Raw
Responses Re: pg_dump question
List pgsql-general
Hi everyone,

I need some help
Can I dump specifc table and still get the actual sequence for it.
Somehow when I go

pg_dump -Fc -t <table name> -D <dbname>
it only give me the for that table
create table text
all the indexes
all the triggers

However, it totally does not bring in the sequence for that table
create table address (
  id integer DEFAULT nextval('address_id_seq'::text) NOT NULL
  phone1 text
);
and address_id_seq is not mentioned anywhere in the dump file?
Am I doing something wrong?
Any insight would be appreciated.

How can I get it?
Thanks a bunch

--

Linh Luong


pgsql-general by date:

Previous
From: aerts_frederik@hotmail.com (Frederik)
Date:
Subject: PostgreSQL Array & Java
Next
From: Oliver Elphick
Date:
Subject: Re: multiple count functions in a select statement