RefLib

Reference library for AI

Back

postgresql_16:7.1.5.2 Parameters

PostgreSQL 16 > Reference > SQL Commands > ALTER DATABASE > Parameters

*name*

The name of the database whose attributes are to be altered.

*allowconn*

If false then no one can connect to this database.

*connlimit*

How many concurrent connections can be made to this database. -1 means no limit.

*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*

The new name of the database.

*new_owner*

The new owner of the database.

*new_tablespace*

The new default tablespace of the database.

This form of the command cannot be executed inside a transaction block.

REFRESH COLLATION VERSION

Update the database collation version. See (see postgresql_16:7.1.3.3) for background.

***configuration_parameter*, *value***

Set this database's session default for the specified configuration parameter to the given value. If *value* is DEFAULT or, equivalently, RESET is used, the database-specific setting is removed, so the system-wide default setting will be inherited in new sessions. Use RESET ALL to clear all database-specific settings. SET FROM CURRENT saves the session's current value of the parameter as the database-specific value.

See (see postgresql_16:7.1.172) and (see postgresql_16:4.5) for more information about allowed parameter names and values.

Back