Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-18 Thread Tom Lane
"Jeffrey Baker" <[EMAIL PROTECTED]> writes: > The two tables are defined the same way, but one of them gets dumped with a > SERIAL declaration and the other gets dumped with a DEFAULT nextval(). > Is it possible that pg_dump became confused if transaction was renamed > transaction_backup and then

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Jeffrey Baker
On Tue, Jun 17, 2008 at 6:31 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Jeffrey Baker escribió: > >> The table was originally created this way: > > > Okay, but was it created on 8.1 or was it already created on an older > > version and restored? I don

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Jeffrey Baker escribió: >> The table was originally created this way: > Okay, but was it created on 8.1 or was it already created on an older > version and restored? I don't see this behavior if I create it in 8.1 > -- the field is dumped as SERIAL, un

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Alvaro Herrera
Jeffrey Baker escribió: > The table was originally created this way: > > CREATE TABLE transaction > ( > transaction_id SERIAL PRIMARY KEY, > buyer_account_idINTEGER, > seller_account_id INTEGER, > dateDATE, >

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Jeffrey Baker
On Tue, Jun 17, 2008 at 2:43 PM, Alvaro Herrera <[EMAIL PROTECTED]> wrote: > Jeffrey Baker escribió: > > On Tue, Jun 17, 2008 at 10:59 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > > > > > "Jeffrey Baker" <[EMAIL PROTECTED]> writes: > > > > It is impossible to dump (with pg_dump -Ocx) and restore (wit

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Alvaro Herrera
Jeffrey Baker escribió: > On Tue, Jun 17, 2008 at 10:59 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > > > "Jeffrey Baker" <[EMAIL PROTECTED]> writes: > > > It is impossible to dump (with pg_dump -Ocx) and restore (with psql) a > > > database which contains sequences in any of 8.1, 8.2, or 8.3: > > > >

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Jeffrey Baker
On Tue, Jun 17, 2008 at 10:59 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > "Jeffrey Baker" <[EMAIL PROTECTED]> writes: > > It is impossible to dump (with pg_dump -Ocx) and restore (with psql) a > > database which contains sequences in any of 8.1, 8.2, or 8.3: > > I should think we would have heard ab

Re: [HACKERS] pg_dump fails to include sequences, leads to restore fail in any version

2008-06-17 Thread Tom Lane
"Jeffrey Baker" <[EMAIL PROTECTED]> writes: > It is impossible to dump (with pg_dump -Ocx) and restore (with psql) a > database which contains sequences in any of 8.1, 8.2, or 8.3: I should think we would have heard about it before now if such a sweeping claim were true. What I suspect is that yo