Re: Single-table backup failure - Mailing list pgadmin-support

From Dave Page
Subject Re: Single-table backup failure
Date
Msg-id 45ADFDE3.3070404@postgresql.org
Whole thread Raw
In response to Single-table backup failure  (Hélder M. Vieira <hmv@mail.telepac.pt>)
List pgadmin-support
Hélder M. Vieira wrote:
> 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 XP 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
> 
> 
> The command currently generated by pgadmin is not following a rule
> described in the pg_dump documentation (the second note on the '-t'
> option) :
> 
> 'you must write something like -t sch.tab to select a table in a
> particular schema, rather than the old locution of -n sch -t tab'

Erk - I've committed fixes to SVN for this for v1.6.3.
> 
> Is there some known workaround to this problem ?
> Thank you.

No, but I can send you a dev build of pgAdmin.exe if you like?

Regards, Dave



pgadmin-support by date:

Previous
From: "Andy Shellam (Mailing Lists)"
Date:
Subject: Re: COPY my_table FROM STDIN
Next
From: Michael Möhle
Date:
Subject: Re: PgAdmin Wishlist: export to clipboard