- IS_TEMPLATE istemplate
ALLOW_CONNECTIONS allowconn
CONNECTION LIMIT connlimit
+ IS_TEMPLATE istemplate
ALTER DATABASE name RENAME TO new_name
-
- istemplate
-
- If true, then this database can be cloned by any user with CREATEDB
- privileges; if false, then only superusers or the owner of the
- database can clone it.
-
-
-
-
allowconn
+
+ istemplate
+
+ If true, then this database can be cloned by any user with CREATEDB
+ privileges; if false, then only superusers or the owner of the
+ database can clone it.
+
+
+
+
new_name
[ LC_COLLATE [=] lc_collate ]
[ LC_CTYPE [=] lc_ctype ]
[ TABLESPACE [=] tablespace_name ]
- [ IS_TEMPLATE [=] istemplate ]
[ ALLOW_CONNECTIONS [=] allowconn ]
[ CONNECTION LIMIT [=] connlimit ] ]
+ [ IS_TEMPLATE [=] istemplate ]
-
- istemplate
-
- If true, then this database can be cloned by any user with CREATEDB
- privileges; if false (the default), then only superusers or the owner
- of the database can clone it.
-
-
-
-
allowconn
+
+
+ istemplate
+
+ If true, then this database can be cloned by any user with CREATEDB
+ privileges; if false (the default), then only superusers or the owner
+ of the database can clone it.
+
+
+
The CREATE POLICY command defines a new policy for a
- table. Note that row level security must also be enabled on the table using
+ table. Note that row-level security must also be enabled on the table using
ALTER TABLE in order for created policies to be applied.
Name of the event source for
pg_ctl to use
for logging to the event log when running as a Windows service. The
default is PostgreSQL. Note that this only controls
- the logging from
pg_ctl itself
- once
+ the logging from
pg_ctl itself
; once
started, the server will use the event source specified
by . Should the server fail during
- early startup, it may also log using the default event
+ early startup, it might also log using the default event
source PostgreSQL.
This option is relevant only when dumping the contents of a table
- which has row security. By default, pg_dump will set
- <literal>ROW_SECURITY to OFF, to ensure
+ which has row security. By default,
pg_dump will set
+ <xref linkend="guc-row-security"> to off, to ensure
that all data is dumped from the table. If the user does not have
sufficient privileges to bypass row security, then an error is thrown.
This parameter instructs
pg_dump to set
- row_security to 'ON' instead, allowing the user to dump the contents
- of the table which they have access to.
+ to on instead, allowing the user
+ to dump the parts of the contents of the table that they have access to.
-
-
-
- Use the specified synchronized snapshot when making a dump of the
- database (see
- for more
- details).
-
- This option is useful when needing to synchronize the dump with
- a logical replication slot (see )
- or with a concurrent session.
-
- In the case of a parallel dump, the snapshot name defined by this
- option is used rather than taking a new snapshot.
-
-
-
-
+
+
+
+ Use the specified synchronized snapshot when making a dump of the
+ database (see
+ for more
+ details).
+
+ This option is useful when needing to synchronize the dump with
+ a logical replication slot (see )
+ or with a concurrent session.
+
+ In the case of a parallel dump, the snapshot name defined by this
+ option is used rather than taking a new snapshot.
+
+
+
+
Unlike the standby's WAL receiver,
pg_receivexlog>
- flushes WAL data only when a WAL file is closed, by default.
+ by default flushes WAL data only when a WAL file is closed.
--synchronous> option must be specified to flush WAL data
in real time and ensure it's safely flushed to disk.
-
+
+
This option is relevant only when restoring the contents of a table
- which has row security. By default, pg_restore will set
- <literal>ROW_SECURITY to OFF, to ensure
+ which has row security. By default,
pg_restore will set
+ <xref linkend="guc-row-security"> to off, to ensure
that all data is restored in to the table. If the user does not have
sufficient privileges to bypass row security, then an error is thrown.
This parameter instructs
pg_restore to set
- row_security to 'ON' instead, allowing the user to attempt to restore
- the contents of the table with row security enabled. This may still
+ to on instead, allowing the user to attempt to restore
+ the contents of the table with row security enabled. This might still
fail if the user does not have the right to insert the rows from the
dump into the table.
- Note that this option currently also requires the dump be in INSERT
- format as COPY TO does not support row security.
+ Note that this option currently also requires the dump be in INSERT
+ format, as COPY TO does not support row security.
-
recovery.conf> file in the target data directory with a
suitable restore_command>.
+
+
pg_rewind> requires that the target server either has
+ the option is enabled
+ in postgresql.conf> or that data checksums were enabled when
+ the cluster was initialized with
initdb>. Neither of these
+ are currently on by default.
+ must also be enabled. That is the
+ default.
+
-
Display version information, then exit
+
Display version information, then exit.
Notes
-
pg_rewind> requires that the wal_log_hints>
- option is enabled in postgresql.conf>, or that data checksums
- were enabled when the cluster was initialized with
initdb>.
- full_page_writes> must also be enabled.
-
-
How it works
servers
- If you have Streaming Replication (
- linkend="streaming-replication">) or Log-Shipping (
+ If you have Streaming Replication (
see
+ linkend="streaming-replication">) or Log-Shipping (
see
linkend="warm-standby">) standby servers, follow these steps to
upgrade them. You will not be running
pg_upgrade>
on the standby servers, but rather
rsync>. Do not
+
+
+
+
+ Execute the vacuum or analyze commands in parallel by running
+ njobs
+ commands simultaneously. This option reduces the time of the
+ processing but it also increases the load on the database server.
+
+ njobs connections to the
+ database, so make sure your
+ setting is high enough to accommodate all connections.
+
+ Note that using this mode together with the
+ (FULL) option might cause deadlock failures if
+ certain system catalogs are processed in parallel.
+
+
+
+
-
-
-
-
- Execute the vacuum or analyze commands in parallel by running
- njobs
- commands simultaneously. This option reduces the time of the
- processing but it also increases the load on the database server.
-
- njobs connections to the
- database, so make sure your
- setting is high enough to accommodate all connections.
-
- Note that using this mode together with the
- (FULL) option might cause deadlock failures if
- certain system catalogs are processed in parallel.
-
-
-
-