pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPg_dump behaviour
3+ messages / 2 participants
[nested] [flat]
* Pg_dump behaviour
@ 2007-01-15 11:46 Hélder M. Vieira <hmv@mail.telepac.pt>
2007-01-15 15:39 ` Re: Pg_dump behaviour Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Hélder M. Vieira @ 2007-01-15 11:46 UTC (permalink / raw)
To: pgsql-admin
I often perform single-table backups using pgadmin.
Recently, a problem occurred while doing that kind of backup using pgadmin
1.6.2 and PostgreSQL 8.2.1 on a Windows server:
When trying to backup a table contained in a specific schema, pg_dump can't
find the table.
For instance, I have a database named 'mdg', containing a schema named
'art', in turn containing a table named 'tefh'.
When I try to backup this table to the root directory with pgadmin, it
generates and executes the following command:
pg_dump.exe -i -h localhost -p 5432 -U postgres -F c -v -f "c:\tefh" -t
tefh -n art mdg
Pg_dump then raises the following error:
pg_dump: No matching tables were found
I tried some alternatives from the command line, but pg_dump only seems to
make the single-table backup when the table name is qualified, as in:
pg_dump.exe -i -h localhost -p 5432 -U postgres -F c -v -f "c:\tefh" -t
art.tefh mdg
At this point, I'd say that the command generated by pgadmin should work, as
it seems to be consistent with pg_dump documentation. Any hints ?
Thank you.
Hélder M. Vieira
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pg_dump behaviour
2007-01-15 11:46 Pg_dump behaviour Hélder M. Vieira <hmv@mail.telepac.pt>
@ 2007-01-15 15:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2007-01-15 23:48 ` Re: Pg_dump behaviour Hélder M. Vieira <hmv@mail.telepac.pt>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2007-01-15 15:39 UTC (permalink / raw)
To: Hélder M. Vieira <hmv@mail.telepac.pt>; +Cc: pgsql-admin
"=?iso-8859-1?Q?H=E9lder_M._Vieira?=" <hmv@mail.telepac.pt> writes:
> I often perform single-table backups using pgadmin.
> Recently, a problem occurred while doing that kind of backup using pgadmin
> 1.6.2 and PostgreSQL 8.2.1 on a Windows server:
> For instance, I have a database named 'mdg', containing a schema named
> 'art', in turn containing a table named 'tefh'.
> When I try to backup this table to the root directory with pgadmin, it
> generates and executes the following command:
> pg_dump.exe -i -h localhost -p 5432 -U postgres -F c -v -f "c:\tefh" -t
> tefh -n art mdg
That was the pre-8.2 way to do it; now the right thing would be
-t art.tefh
Sounds like pgadmin needs an update. While they're at it, they should
definitely lose the -i switch ... using that by default is extremely
stupid/dangerous.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pg_dump behaviour
2007-01-15 11:46 Pg_dump behaviour Hélder M. Vieira <hmv@mail.telepac.pt>
2007-01-15 15:39 ` Re: Pg_dump behaviour Tom Lane <tgl@sss.pgh.pa.us>
@ 2007-01-15 23:48 ` Hélder M. Vieira <hmv@mail.telepac.pt>
0 siblings, 0 replies; 3+ messages in thread
From: Hélder M. Vieira @ 2007-01-15 23:48 UTC (permalink / raw)
To: pgsql-admin
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Hélder M. Vieira" <hmv@mail.telepac.pt>
Cc: <pgsql-admin@postgresql.org>
Sent: Monday, January 15, 2007 3:39 PM
Subject: Re: [ADMIN] Pg_dump behaviour
...
> That was the pre-8.2 way to do it; now the right thing would be
> -t art.tefh
> Sounds like pgadmin needs an update.
...
Thanks for clarifying.
The second note in the '-t' option description in the pg_dump documentation
is a clear warning.
I'll submit a bug report in the pgadmin mailling list.
Regards,
Helder M. Vieira
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-01-15 23:48 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-15 11:46 Pg_dump behaviour Hélder M. Vieira <hmv@mail.telepac.pt>
2007-01-15 15:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2007-01-15 23:48 ` Hélder M. Vieira <hmv@mail.telepac.pt>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox