From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tomas Szepe <szepe(at)pinerecords(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org, Neil Conway <neilc(at)samurai(dot)com> |
Subject: | Re: [7.4beta3] pg_dump -t xxx won't output sequences |
Date: | 2003-09-27 18:23:15 |
Message-ID: | 12655.1064686995@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Tomas Szepe <szepe(at)pinerecords(dot)com> writes:
> Not sure if this is a bug, but still. :)
> pgsql7.3.4$ pg_dump -a -t seq_wtmp db1
> [ works ]
> pgsql7.4beta3$ pg_dump -a -t seq_wtmp db1
> pg_dump: specified table "seq_wtmp" does not exist
Looking at the CVS history, I see that Neil added code to deliberately
reject this case, but I don't understand why.
/*
* If the user is attempting to dump a specific table, check to ensure
* that the specified table actually exists (and is a table or a view,
* not a sequence).
*/
if (selectTableName)
{
for (i = 0; i < ntups; i++)
if (strcmp(tblinfo[i].relname, selectTableName) == 0 &&
tblinfo[i].relkind != 'S')
break;
Neil, what's the reason not to allow dumping just a sequence?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-27 19:43:58 | Re: Can't Build 7.3.4 on OS X |
Previous Message | Tomas Szepe | 2003-09-27 11:50:16 | [7.4beta3] pg_dump -t xxx won't output sequences |