From cafebdd4d880664a065ae58b7e05fb7a73b36c9a Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Fri, 30 Aug 2002 03:18:23 +0000 Subject: [PATCH] Add comment on old sytax for SELECT FOR UPDATE/LIMIT and COPY. --- doc/src/sgml/ref/copy.sgml | 17 +++++++++++++++-- doc/src/sgml/ref/select.sgml | 5 +++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index 7048636171e..c5c8fcbb947 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.37 2002/08/04 05:22:02 tgl Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.38 2002/08/30 03:18:23 momjian Exp $ PostgreSQL documentation --> @@ -56,7 +56,7 @@ COPY <replaceable class="parameter">table</replaceable> [ ( <replaceable class=" </listitem> </varlistentry> - <varlistentry> + <varlistentry> <term><replaceable class="parameter">column</replaceable></term> <listitem> <para> @@ -699,6 +699,19 @@ ZW ZIMBABWE <para> There is no <command>COPY</command> statement in SQL92. </para> + <para> + The following syntax was used by pre-7.3 servers and is still supported: + <synopsis> + COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ] + FROM { '<replaceable class="parameter">filename</replaceable>' | <filename>stdin</filename> } + [ [USING] DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ] + [ WITH NULL AS '<replaceable class="parameter">null string</replaceable>' ] + COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ] + TO { '<replaceable class="parameter">filename</replaceable>' | <filename>stdout</filename> } + [ [USING] DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ] + [ WITH NULL AS '<replaceable class="parameter">null string</replaceable>' ] + </synopsis> + </para> </refsect2> </refsect1> </refentry> diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml index f6dd0397570..1feaa6f7b48 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.58 2002/08/29 00:17:01 tgl Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.59 2002/08/30 03:18:23 momjian Exp $ PostgreSQL documentation --> @@ -868,7 +868,8 @@ SELECT name FROM distributors ORDER BY code; <para> FOR UPDATE cannot be used in contexts where returned rows can't be clearly identified with individual table rows; for example it can't be used with - aggregation. + aggregation. FOR UPDATE may also appear before LIMIT for portability with + pre-7.3 servers. </para> </refsect2> -- GitLab