Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
60f3e6b3
Commit
60f3e6b3
authored
Oct 29, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make USING in COPY optional.
parent
ba1714b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/copy.sgml
+3
-3
src/backend/parser/gram.y
src/backend/parser/gram.y
+8
-4
src/bin/psql/psqlHelp.h
src/bin/psql/psqlHelp.h
+2
-2
No files found.
doc/src/sgml/ref/copy.sgml
View file @
60f3e6b3
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.
9 1999/07/22 15:09:07 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.
10 1999/10/29 23:52:20 momjian
Exp $
Postgres documentation
-->
...
...
@@ -25,10 +25,10 @@ Postgres documentation
<synopsis>
COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ]
FROM { '<replaceable class="parameter">filename</replaceable>' | <filename>stdin</filename> }
[
USING
DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ]
[
[USING]
DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ]
COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ]
TO { '<replaceable class="parameter">filename</replaceable>' | <filename>stdout</filename> }
[
USING
DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ]
[
[USING]
DELIMITERS '<replaceable class="parameter">delimiter</replaceable>' ]
</synopsis>
<refsect2 id="R2-SQL-COPY-1">
...
...
src/backend/parser/gram.y
View file @
60f3e6b3
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.11
2 1999/10/29 23:44:42
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.11
3 1999/10/29 23:52:20
momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -191,8 +191,8 @@ Oid param_type(int t); /* used in parse_expr.c */
%type <list> substr_list, substr_from, substr_for, trim_list
%type <list> opt_interval
%type <boolean> opt_inh_star, opt_binary, opt_
instead, opt_with_copy
,
index_opt_unique, opt_verbose, opt_analyze
%type <boolean> opt_inh_star, opt_binary, opt_
using, opt_instead
,
opt_with_copy,
index_opt_unique, opt_verbose, opt_analyze
%type <boolean> opt_cursor
%type <ival> copy_dirn, def_type, opt_direction, remove_type,
...
...
@@ -802,10 +802,14 @@ opt_with_copy: WITH OIDS { $$ = TRUE; }
/*
* the default copy delimiter is tab but the user can configure it
*/
copy_delimiter:
USING DELIMITERS Sconst
{ $$ = $3; }
copy_delimiter:
opt_using DELIMITERS Sconst
{ $$ = $3; }
| /*EMPTY*/ { $$ = "\t"; }
;
opt_using: USING { $$ = TRUE; }
| /*EMPTY*/ { $$ = TRUE; }
;
/*****************************************************************************
*
...
...
src/bin/psql/psqlHelp.h
View file @
60f3e6b3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: psqlHelp.h,v 1.
79 1999/10/27 16:33:45
momjian Exp $
* $Id: psqlHelp.h,v 1.
80 1999/10/29 23:52:22
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -69,7 +69,7 @@ static struct _helpStruct QL_HELP[] = {
"copy data to and from a table"
,
"\
\t
COPY [BINARY] table_name [WITH OIDS]
\n
\
\t
TO|FROM filename|STDIN|STDOUT [
USING
DELIMITERS 'delim'];"
},
\t
TO|FROM filename|STDIN|STDOUT [
[USING]
DELIMITERS 'delim'];"
},
{
"create"
,
"Please be more specific:"
,
"\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment