[PATCH] Fix typo in psql \copy command documentation

Ignat Remizov <ignat980@gmail.com>

From: Ignat Remizov <ignat980@gmail.com>
To:
Date: 2025-12-06T15:30:20Z
Lists: pgsql-hackers
The comment documenting \copy command syntax incorrectly listed
"pstdout" twice. The first instance should be "pstdin" to correctly
reflect that the command accepts both pstdin and pstdout as valid
filename options.

This is a documentation-only change with no functional impact.
---
 src/bin/psql/copy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index 92c955b637a..04553c3a33f 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -33,7 +33,7 @@
  * \copy ( query stmt ) to filename [options]
  *
  * where 'filename' can be one of the following:
- * '<file path>' | PROGRAM '<command>' | stdin | stdout | pstdout | pstdout
+ * '<file path>' | PROGRAM '<command>' | stdin | stdout | pstdin | pstdout
  * and 'query' can be one of the following:
  * SELECT | UPDATE | INSERT | DELETE
  *
-- 
2.43.0

--00000000000062b87806454a5f01
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><font face=3D"monospace">Hi Postgres hackers,<br><br>=
Small comment typo fix: pstdout was listed twice; first should be pstdin.<b=
r>Patch inline.<br><br>Kind regards,<br>Ignat Remizov<br><br>From a4ae3eb6a=
bd1189a2710b09efd567e46ed9b1f83 Mon Sep 17 00:00:00 2001<br>From: Ignat Rem=
izov &lt;<a href=3D"mailto:ignat980@gmail.com">ignat980@gmail.com</a>&gt;<b=
r>Date: Sat, 6 Dec 2025 17:30:20 +0200<br>Subject: [PATCH] Fix typo in psql=
 \copy command documentation<br><br>The comment documenting \copy command s=
yntax incorrectly listed<br>&quot;pstdout&quot; twice. The first instance s=
hould be &quot;pstdin&quot; to correctly<br>reflect that the command accept=
s both pstdin and pstdout as valid<br>filename options.<br><br>This is a do=
cumentation-only change with no functional impact.<br>---<br>=C2=A0src/bin/=
psql/copy.c | 2 +-<br>=C2=A01 file changed, 1 insertion(+), 1 deletion(-)<b=
r><br>diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c<br>index 92c95=
5b637a..04553c3a33f 100644<br>--- a/src/bin/psql/copy.c<br>+++ b/src/bin/ps=
ql/copy.c<br>@@ -33,7 +33,7 @@<br>=C2=A0 *	\copy ( query stmt ) to filename=
 [options]<br>=C2=A0 *<br>=C2=A0 * where &#39;filename&#39; can be one of t=
he following:<br>- *	&#39;&lt;file path&gt;&#39; | PROGRAM &#39;&lt;command=
&gt;&#39; | stdin | stdout | pstdout | pstdout<br>+ *	&#39;&lt;file path&gt=
;&#39; | PROGRAM &#39;&lt;command&gt;&#39; | stdin | stdout | pstdin | pstd=
out<br>=C2=A0 * and &#39;query&#39; can be one of the following:<br>=C2=A0 =
*	SELECT | UPDATE | INSERT | DELETE<br>=C2=A0 *<br>-- <br>2.43.0</font></di=
v><div><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_s=
ignature"><div dir=3D"ltr"><div><div></div></div></div></div></div></div>

--00000000000062b87806454a5f01--