Unix Technical Forum

BUG #1513: pg_dump -t doesn't include sequences for pre-v8-created tables

This is a discussion on BUG #1513: pg_dump -t doesn't include sequences for pre-v8-created tables within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 1513 Logged by: Chris Hutchinson Email address: hutchinson.chris@gmail.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:37 AM
Chris Hutchinson
 
Posts: n/a
Default BUG #1513: pg_dump -t doesn't include sequences for pre-v8-created tables


The following bug has been logged online:

Bug reference: 1513
Logged by: Chris Hutchinson
Email address: hutchinson.chris@gmail.com
PostgreSQL version: 8.0
Operating system: Linux - Fedora Core 2
Description: pg_dump -t doesn't include sequences for pre-v8-created
tables
Details:

pg_dump -t includes SERIAL column sequence details for the dumped table when
the table has been created in v8 postgresql.

Tables migrated from an earlier pg version aren't being dumped with their
sequence details. (These tables were created in 7.1, and migrated through
7.3, 7.4 and 8.0)

pg_dump relies on the d.refobjid as owning_tab and d.refobjsubid as
owning_col to track the linkage between SERIAL sequences and their owner
tables.

In the migrated tables these columns don't contain values linking sequences
to their tables, so the sequences aren't included in the dump.

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:42 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #1513: pg_dump -t doesn't include sequences for pre-v8-created tables

"Chris Hutchinson" <hutchinson.chris@gmail.com> writes:
> pg_dump -t includes SERIAL column sequence details for the dumped table when
> the table has been created in v8 postgresql.


> Tables migrated from an earlier pg version aren't being dumped with their
> sequence details. (These tables were created in 7.1, and migrated through
> 7.3, 7.4 and 8.0)


Yup. You might try the contrib/adddepend tool to fix this.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com