Historical version. PostgreSQL 10 has reached end of support. 2022-11-10. See the current manual.
SET CONNECTION
SET CONNECTION — select a database connection
Synopsis
SET CONNECTION [ TO | = ] connection_nameDescription
SET CONNECTION sets the “current”
database connection, which is the one that all commands use
unless overridden.
Parameters
connection_nameA database connection name established by the
CONNECTcommand.DEFAULTSet the connection to the default connection.
Examples
EXEC SQL SET CONNECTION TO con2; EXEC SQL SET CONNECTION = con1;
Compatibility
SET CONNECTION is specified in the SQL standard.
See Also
CONNECT, DISCONNECTReport a documentation issue
Read the upstream documentation. For corrections, first check the current manual.