From: | Dave Page <dpage(at)postgresql(dot)org> |
---|---|
To: | "Hélder M(dot) Vieira" <hmv(at)mail(dot)telepac(dot)pt> |
Cc: | pgadmin-support(at)postgresql(dot)org |
Subject: | Re: Single-table backup failure |
Date: | 2007-01-17 10:43:47 |
Message-ID: | 45ADFDE3.3070404@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Hélder M. Vieira | 2007-01-17 16:42:40 | Re: Single-table backup failure |
Previous Message | Andy Shellam (Mailing Lists) | 2007-01-17 10:22:09 | Re: COPY my_table FROM STDIN |