pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedUnable to backup table when quotation marks used in the name
2+ messages / 2 participants
[nested] [flat]
* Unable to backup table when quotation marks used in the name
@ 2010-10-20 12:28 maiesky@poczta.onet.pl
2010-10-23 10:11 ` Re: Unable to backup table when quotation marks used in the name Guillaume Lelarge <guillaume@lelarge.info>
0 siblings, 1 reply; 2+ messages in thread
From: maiesky@poczta.onet.pl @ 2010-10-20 12:28 UTC (permalink / raw)
To: pgsql-admin
I am running pgAdmim 1.12 on WinXP SP3 but this issue was observed in
previous releases also.
When trying to do a backup of a table which has quotation marks in its name
or in schema name then getting error:
(example1 quotation marks in schema name)
C:\Program Files\pgAdmin III\1.12\pg_dump.exe --host XXX.com --port 5432
--username XXXX --format plain --data-only --verbose --file "C:\moja.sql"
--table "TT_settings".moja "TT_dudulu"
pg_dump: No matching tables were found
pg_dump: *** aborted because of error
Process returned exit code 1.
or
(example2 quotation marks in table name)
C:\Program Files\pgAdmin III\1.12\pg_dump.exe --host XXX.com --port 5432
--username XXXX --format plain --data-only --verbose --file "C:\cwtest2.sql"
--table n_dms."CFX" "TT_dudulu"
pg_dump: No matching tables were found
pg_dump: *** aborted because of error
Process returned exit code 1.
To bypass this problem I can manually run script with added surrounding
quotation marks around the access path and escaping chars included in the
name:
for the first example:
"\"TT_settings\".moja"
for second example:
"n_dms.\"CFX\""
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Unable to backup table when quotation marks used in the name
2010-10-20 12:28 Unable to backup table when quotation marks used in the name maiesky@poczta.onet.pl
@ 2010-10-23 10:11 ` Guillaume Lelarge <guillaume@lelarge.info>
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Lelarge @ 2010-10-23 10:11 UTC (permalink / raw)
To: maiesky@poczta.onet.pl; +Cc: pgsql-admin
Le 20/10/2010 05:28, maiesky@poczta.onet.pl a écrit :
> I am running pgAdmim 1.12 on WinXP SP3 but this issue was observed in
> previous releases also.
> When trying to do a backup of a table which has quotation marks in its name
> or in schema name then getting error:
> (example1 quotation marks in schema name)
>
> C:\Program Files\pgAdmin III\1.12\pg_dump.exe --host XXX.com --port 5432
> --username XXXX --format plain --data-only --verbose --file "C:\moja.sql"
> --table "TT_settings".moja "TT_dudulu"
> pg_dump: No matching tables were found
> pg_dump: *** aborted because of error
>
> Process returned exit code 1.
>
> or
> (example2 quotation marks in table name)
>
> C:\Program Files\pgAdmin III\1.12\pg_dump.exe --host XXX.com --port 5432
> --username XXXX --format plain --data-only --verbose --file "C:\cwtest2.sql"
> --table n_dms."CFX" "TT_dudulu"
> pg_dump: No matching tables were found
> pg_dump: *** aborted because of error
>
> Process returned exit code 1.
>
> To bypass this problem I can manually run script with added surrounding
> quotation marks around the access path and escaping chars included in the
> name:
> for the first example:
> "\"TT_settings\".moja"
>
> for second example:
> "n_dms.\"CFX\""
>
I added a ticket (http://code.pgadmin.org/trac/ticket/266) to work on
this when we'll have some time. Thanks for your report.
--
Guillaume
http://www.postgresql.fr
http://dalibo.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-10-23 10:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 12:28 Unable to backup table when quotation marks used in the name maiesky@poczta.onet.pl
2010-10-23 10:11 ` Guillaume Lelarge <guillaume@lelarge.info>
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