11<!--
2- $PostgreSQL: pgsql/doc/src/sgml/ref/alter_database.sgml,v 1.15 2005/01/05 14:22:39 petere Exp $
2+ $PostgreSQL: pgsql/doc/src/sgml/ref/alter_database.sgml,v 1.16 2005/07/31 17:19:16 tgl Exp $
33PostgreSQL documentation
44-->
55
@@ -20,6 +20,12 @@ PostgreSQL documentation
2020
2121 <refsynopsisdiv>
2222<synopsis>
23+ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ]
24+
25+ where <replaceable class="PARAMETER">option</replaceable> can be:
26+
27+ CONNECTION LIMIT <replaceable class="PARAMETER">connlimit</replaceable>
28+
2329ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> SET <replaceable>parameter</replaceable> { TO | = } { <replaceable>value</replaceable> | DEFAULT }
2430ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET <replaceable>parameter</replaceable>
2531
@@ -38,7 +44,12 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
3844 </para>
3945
4046 <para>
41- The first two forms change the session default for a run-time
47+ The first form changes certain per-database settings. (See below for
48+ details.) Only the database owner or a superuser can change these settings.
49+ </para>
50+
51+ <para>
52+ The second and third forms change the session default for a run-time
4253 configuration variable for a <productname>PostgreSQL</productname>
4354 database. Whenever a new session is subsequently started in that
4455 database, the specified value becomes the session default value.
@@ -51,7 +62,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
5162 </para>
5263
5364 <para>
54- Thethird form changes the name of the database. Only the database
65+ Thefourth form changes the name of the database. Only the database
5566 owner or a superuser can rename a database; non-superuser owners must
5667 also have the
5768 <literal>CREATEDB</literal> privilege. The current database cannot
@@ -60,7 +71,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
6071 </para>
6172
6273 <para>
63- Thefourth form changes the owner of the database. Only a superuser
74+ Thefifth form changes the owner of the database. Only a superuser
6475 can change the database's owner.
6576 </para>
6677 </refsect1>
@@ -78,6 +89,16 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
7889 </listitem>
7990 </varlistentry>
8091
92+ <varlistentry>
93+ <term><replaceable class="parameter">connlimit</replaceable></term>
94+ <listitem>
95+ <para>
96+ How many concurrent connections can be made
97+ to this database. -1 means no limit.
98+ </para>
99+ </listitem>
100+ </varlistentry>
101+
81102 <varlistentry>
82103 <term><replaceable>parameter</replaceable></term>
83104 <term><replaceable>value</replaceable></term>