dynamically from one version to the next, you should provide
update scripts that make the necessary changes to go from
one version to the next. Update scripts have names following the pattern
- extension--oldversion--newversion.sql
+ extension--old_version--target_version.sql
(for example, foo--1.0--1.1.sql contains the commands to modify
version 1.0 of extension foo into version
1.1).
FROM { 'filename' | STDIN }
[ [ WITH ]
[ BINARY ]
- [ DELIMITER [ AS ] 'delimiter' ]
- [ NULL [ AS ] 'null string' ]
+ [ DELIMITER [ AS ] 'delimiter_character' ]
+ [ NULL [ AS ] 'null_string' ]
[ CSV [ HEADER ]
- [ QUOTE [ AS ] 'quote' ]
- [ ESCAPE [ AS ] 'escape' ]
+ [ QUOTE [ AS ] 'quote_character' ]
+ [ ESCAPE [ AS ] 'escape_character' ]
[ FORCE NOT NULL column_name [, ...] ] ] ]
COPY { table_name [ ( column_name [, ...] ) ] | ( query ) }
TO { 'filename' | STDOUT }
[ [ WITH ]
[ BINARY ]
- [ DELIMITER [ AS ] 'delimiter' ]
- [ NULL [ AS ] 'null string' ]
+ [ DELIMITER [ AS ] 'delimiter_character' ]
+ [ NULL [ AS ] 'null_string' ]
[ CSV [ HEADER ]
- [ QUOTE [ AS ] 'quote' ]
- [ ESCAPE [ AS ] 'escape' ]
+ [ QUOTE [ AS ] 'quote_character' ]
+ [ ESCAPE [ AS ] 'escape_character' ]
[ FORCE QUOTE { column_name [, ...] | * } ] ] ]
COPY [ BINARY ] table_name
FROM { 'filename' | STDIN }
- [ [USING] DELIMITERS 'delimiter' ]
- [ WITH NULL AS 'null string' ]
+ [ [USING] DELIMITERS 'delimiter_character' ]
+ [ WITH NULL AS 'null_string' ]
COPY [ BINARY ] table_name
TO { 'filename' | STDOUT }
- [ [USING] DELIMITERS 'delimiter' ]
- [ WITH NULL AS 'null string' ]
+ [ [USING] DELIMITERS 'delimiter_character' ]
+ [ WITH NULL AS 'null_string' ]
Using this command, it is possible to either add privileges or restrict
- one's privileges. If the session user role has the INHERITS
+ one's privileges. If the session user role has the INHERIT
attribute, then it automatically has all the privileges of every role that
it could SET ROLE to; in this case SET ROLE
effectively drops all the privileges assigned directly to the session user