- column list
+ column
An optional list of columns to be copied. If no column list is
Changes the behavior of field formatting, forcing all data to be
stored or read in binary format rather than as text. You can not
- specify DELIMITER or NULL in binary mode.
+ specify , , or
+ a column list in binary mode.
delimiter
- The character that separates fields within each row (line) of the file.
+ The single character that separates fields within each row (line) of the file.
COPY moves data between
PostgreSQL tables and standard file-system
- files.
-
- COPY TO copies the entire contents of a table
+ files. COPY TO copies the contents of a table
to> a file, while COPY FROM copies
data from> a file to a table (appending the data to
whatever is in the table already).
If a list of columns is specified, COPY will
only copy the data in the specified columns to or from the file.
- If there are any columns in the table that are not in the file,
+ If there are any columns in the table that are not in the column list,
COPY FROM will insert the default values for
those columns.
By default, a text copy uses a tab ("\t") character as a delimiter
between fields. The field delimiter may be changed to any other
- single character with the keyword DELIMITER. Characters in data
- fields that happen to match the delimiter character will be
+ single character with the keyword . Characters
+ in data fields that happen to match the delimiter character will be
backslash quoted.
Usage
-The following example copies a table to standard output,
- using a vertical bar (|) as the field
- delimiter:
+ The following example copies a table to standard output,
+ using a vertical bar (|) as the field delimiter:
COPY country TO stdout WITH DELIMITER '|';
- To copy data from a Unix file into a table country:
+ To copy data from a Unix file into the country> table:
COPY country FROM '/usr1/proj/bray/sql/country_data';
- ERROR: not a valid option name: name
+ ERROR: 'name is not a
+ valid option name
The parameter you tried to set does not exist.
- ERROR: permission denied
+ ERROR: 'name':
+ permission denied
You must be a superuser to alter certain settings.
- ERROR: name can only be set at start-up
+ ERROR: 'name' cannot
+ be changed after server start
Some parameters are fixed once the server is started.
SHOW will display the current setting of a
run-time parameter. These variables can be set using the
- SET statement or are determined at session start.
+ SET statement, by editing the
+ postgresql.conf, through the
+ PGOPTIONS environmental variable, or through a
+ command-line flag when starting the
- ERROR: not a valid option name: name
+ ERROR: Option 'name'
+ is not recognized
- Message returned if variable does
+ Message returned if name does
not stand for an existing parameter.
Show the current DateStyle setting:
-<screen>
+<programlisting>
SHOW DateStyle;
DateStyle
---------------------------------------
ISO with US (NonEuropean) conventions
(1 row)
-screen>
+programlisting>
Show the current genetic optimizer (geqo) setting:
SHOW GEQO;
geqo
------
on
(1 row)
-screen>
+programlisting>
*
* Copyright (c) 2001, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.22 2002/07/20 05:16:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.23 2002/08/04 05:09:36 momjian Exp $
* ----------
*/
#include "postgres.h"
if (pgStatSock < 0)
return;
+ MemSet(&(msg.m_hdr), 0, sizeof(msg.m_hdr));
msg.m_hdr.m_type = PGSTAT_MTYPE_BETERM;
- msg.m_hdr.m_backendid = 0;
msg.m_hdr.m_procpid = pid;
- msg.m_hdr.m_databaseid = 0;
pgstat_send(&msg, sizeof(msg));
}