Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cafebdd

Browse files
committed
Add comment on old sytax for SELECT FOR UPDATE/LIMIT and COPY.
1 parent a4dbbb5 commit cafebdd

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

doc/src/sgml/ref/copy.sgml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.37 2002/08/04 05:22:02 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.38 2002/08/30 03:18:23 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -56,7 +56,7 @@ COPY <replaceable class="parameter">table</replaceable> [ ( <replaceable class="
5656
</listitem>
5757
</varlistentry>
5858

59-
<varlistentry>
59+
<varlistentry>
6060
<term><replaceable class="parameter">column</replaceable></term>
6161
<listitem>
6262
<para>
@@ -699,6 +699,19 @@ ZW ZIMBABWE
699699
<para>
700700
There is no <command>COPY</command> statement in SQL92.
701701
</para>
702+
<para>
703+
The following syntax was used by pre-7.3 servers and is still supported:
704+
<synopsis>
705+
COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ]
706+
FROM { '<replaceable class="parameter">filename</replaceable>' | <filename>stdin</filename> }
707+
[ [USING] DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ]
708+
[ WITH NULL AS '<replaceable class="parameter">null string</replaceable>' ]
709+
COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ]
710+
TO { '<replaceable class="parameter">filename</replaceable>' | <filename>stdout</filename> }
711+
[ [USING] DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ]
712+
[ WITH NULL AS '<replaceable class="parameter">null string</replaceable>' ]
713+
</synopsis>
714+
</para>
702715
</refsect2>
703716
</refsect1>
704717
</refentry>

doc/src/sgml/ref/select.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.58 2002/08/29 00:17:01 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.59 2002/08/30 03:18:23 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -868,7 +868,8 @@ SELECT name FROM distributors ORDER BY code;
868868
<para>
869869
FOR UPDATE cannot be used in contexts where returned rows can't be clearly
870870
identified with individual table rows; for example it can't be used with
871-
aggregation.
871+
aggregation. FOR UPDATE may also appear before LIMIT for portability with
872+
pre-7.3 servers.
872873
</para>
873874
</refsect2>
874875

0 commit comments

Comments
 (0)