Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0153c4c

Browse files
committed
Be less wishy-washy in the documentation and comments about whether a
ParameterStatus message can be sent during COPY OUT: it's definitelypossible, since COPY from a SELECT subquery can trigger any user-definedfunction.
1 parent14e2a26 commit0153c4c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

‎doc/src/sgml/protocol.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.71 2008/01/1418:46:17 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.72 2008/01/15 22:18:20 tgl Exp $ -->
22

33
<chapter id="protocol">
44
<title>Frontend/Backend Protocol</title>
@@ -1044,10 +1044,10 @@
10441044
</para>
10451045

10461046
<para>
1047-
It is possible for NoticeResponse messages to be interspersed between
1048-
CopyData messages; frontends must handlethis case, and should be
1049-
prepared for other asynchronous message types as well (see <xref
1050-
linkend="protocol-async">). Otherwise, any message type other than
1047+
It is possible for NoticeResponseand ParameterStatusmessages to be
1048+
interspersed betweenCopyData messages; frontends must handlethese cases,
1049+
and should beprepared for other asynchronous message types as well (see
1050+
<xreflinkend="protocol-async">). Otherwise, any message type other than
10511051
CopyData or CopyDone may be treated as terminating copy-out mode.
10521052
</para>
10531053

‎src/interfaces/libpq/fe-protocol3.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.32 2008/01/1418:46:17 tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.33 2008/01/15 22:18:20 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1310,9 +1310,8 @@ getCopyDataMessage(PGconn *conn)
13101310
/*
13111311
* If it's a legitimate async message type, process it. (NOTIFY
13121312
* messages are not currently possible here, but we handle them for
1313-
* completeness. NOTICE is definitely possible, and ParameterStatus
1314-
* could probably be made to happen.) Otherwise, if it's anything
1315-
* except Copy Data, report end-of-copy.
1313+
* completeness.) Otherwise, if it's anything except Copy Data,
1314+
* report end-of-copy.
13161315
*/
13171316
switch (id)
13181317
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp