Add an example showing how to cope with mixed-case names in pg_dump
switches.
This commit is contained in:
parent
765cc1588f
commit
7bbe35a540
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.91 2006/10/23 18:10:32 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.92 2006/11/28 22:54:18 tgl Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -838,6 +838,20 @@ CREATE DATABASE foo WITH TEMPLATE template0;
|
||||
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>pg_dump -T 'ts_*' mydb > db.sql</userinput>
|
||||
</screen>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To specify an upper-case or mixed-case name in <option>-t</> and related
|
||||
switches, you need to double-quote the name; else it will be folded to
|
||||
lower case (see <xref
|
||||
linkend="APP-PSQL-patterns" endterm="APP-PSQL-patterns-title">). But
|
||||
double quotes are special to the shell, so in turn they must be quoted.
|
||||
Thus, to dump a single table with a mixed-case name, you need something
|
||||
like
|
||||
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>pg_dump -t '"MixedCaseName"' mydb > mytab.sql</userinput>
|
||||
</screen>
|
||||
</para>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user