git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b1bc2f0)
Improve COPY documentation to clarify that it doesn't copy data to or from
2010年4月30日 19:49:06 +0000 (19:49 +0000)
2010年4月30日 19:49:06 +0000 (19:49 +0000)
child tables. Per gripe from Jaime Casanova.


diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml
index 8f8f48dd6468b7d508280ad3296d2b6bfa962784..ac2f0dadc205e18d8b64d837c8a77ab556c6ef44 100644 (file)
--- a/doc/src/sgml/ref/copy.sgml
+++ b/doc/src/sgml/ref/copy.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.97 2010年04月23日 23:21:43 rhaas Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.98 2010年04月30日 19:49:06 tgl Exp $
PostgreSQL documentation
-->
@@ -308,6 +308,16 @@ COPY <replaceable class="parameter">count</replaceable>
<replaceable class="parameter">viewname</replaceable>) TO ...</literal>.
</para>
+ <para>
+ <command>COPY</command> only deals with the specific table named;
+ it does not copy data to or from child tables. Thus for example
+ <literal>COPY <replaceable class="parameter">table</> TO</literal>
+ shows the same data as <literal>SELECT * FROM ONLY <replaceable
+ class="parameter">table</></literal>. But <literal>COPY
+ (SELECT * FROM <replaceable class="parameter">table</>) TO ...</literal>
+ can be used to dump all of the data in an inheritance hierarchy.
+ </para>
+
<para>
You must have select privilege on the table
whose values are read by <command>COPY TO</command>, and
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /