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

Commit03d4655

Browse files
committed
Fix documentation of psql's ECHO all mode.
"ECHO all" is ignored for interactive input, and has been for a very longtime, though possibly not for as long as the documentation has claimed theopposite. Fix that, and also note that empty lines aren't echoed, whichwhile dubious is another longstanding behavior (it's embedded in ourregression test files for one thing). Per bug #12721 from Hans Ginzel.In HEAD, also improve the code comments in this area, and suppress anunnecessary fflush(stdout) when we're not echoing. That would likelybe safe to back-patch, but I'll not risk it mere hours before a releasewrap.
1 parentcb24cd3 commit03d4655

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ PostgreSQL documentation
5353
<term><option>--echo-all</></term>
5454
<listitem>
5555
<para>
56-
Print all input lines to standard output as they are read. This is more
57-
useful for script processing than interactive mode. This is
56+
Print allnonemptyinput lines to standard output as they are read.
57+
(This does not apply to lines read interactively.) This is
5858
equivalent to setting the variable <varname>ECHO</varname> to
5959
<literal>all</literal>.
6060
</para>
@@ -2565,13 +2565,13 @@ bar
25652565
<term><varname>ECHO</varname></term>
25662566
<listitem>
25672567
<para>
2568-
If set to <literal>all</literal>, all lines
2569-
entered from the keyboard or from a script are written to the standard output
2570-
before they are parsed or executed. To select this behavior on program
2568+
If set to <literal>all</literal>, allnonempty inputlines are printed
2569+
to standard output as they are read. (This does not apply to lines
2570+
read interactively.) To select this behavior on program
25712571
start-up, use the switch <option>-a</option>. If set to
25722572
<literal>queries</literal>,
2573-
<application>psql</application>merelyprintsall queries as
2574-
they are sent to the server. The switch for this is
2573+
<application>psql</application> printseach query to standard output
2574+
as it is sent to the server. The switch for this is
25752575
<option>-e</option>.
25762576
</para>
25772577
</listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp