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

Commit44dc9c1

Browse files
committed
Fix psql's \copy to accept table names containing schemas, as well as
a column list. Bring its parsing of quoted names and quoted stringssomewhat up to speed --- I believe it now handles all non-error casesthe same way the backend would, but weird boundary conditions are notnecessarily done the same way.
1 parent4cff161 commit44dc9c1

File tree

4 files changed

+372
-227
lines changed

4 files changed

+372
-227
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.78 2002/10/11 23:03:48 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.79 2002/10/19 00:22:14 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -692,6 +692,7 @@ testdb=>
692692

693693
<varlistentry>
694694
<term><literal>\copy <replaceable class="parameter">table</replaceable>
695+
[ ( <replaceable class="parameter">column_list</replaceable> ) ]
695696
{ <literal>from</literal> | <literal>to</literal> }
696697
<replaceable class="parameter">filename</replaceable> | stdin | stdout
697698
[ <literal>with</literal> ]
@@ -705,11 +706,12 @@ testdb=>
705706
Performs a frontend (client) copy. This is an operation that
706707
runs an <acronym>SQL</acronym> <xref linkend="SQL-COPY"
707708
endterm="SQL-COPY-title"> command, but instead of the backend's
708-
reading or writing the specified file, and consequently
709-
requiring backend access and special user privilege, as well as
710-
being bound to the file system accessible by the backend,
709+
reading or writing the specified file,
711710
<application>psql</application> reads or writes the file and
712711
routes the data between the backend and the local file system.
712+
This means that file accessibility and privileges are those
713+
of the local user, not the server, and no SQL superuser
714+
privileges are required.
713715
</para>
714716

715717
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp