Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y29OG-0005Bk-15 for pgsql-committers@arkaria.postgresql.org; Sat, 20 Dec 2014 02:03:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y29OF-0007Se-H2 for pgsql-committers@arkaria.postgresql.org; Sat, 20 Dec 2014 02:03:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y29OE-0007SX-Hl for pgsql-committers@postgresql.org; Sat, 20 Dec 2014 02:03:30 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y29OA-0000PA-HT for pgsql-committers@postgresql.org; Sat, 20 Dec 2014 02:03:29 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Y29O6-0000Dy-No; Fri, 19 Dec 2014 21:03:22 -0500 Date: Fri, 19 Dec 2014 21:03:22 -0500 From: Bruce Momjian To: Noah Misch Cc: David G Johnston , pgsql-committers@postgresql.org Subject: Re: pgsql: doc: restrictions on alter database moving default tablespace Message-ID: <20141220020322.GB21109@momjian.us> References: <20141021053843.GA287253@tornado.leadboat.com> <20141212211450.GA7456@momjian.us> <20141216033312.GA5584@gust> <1418704058049-5830836.post@n5.nabble.com> <20141219070910.GB1831739@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20141219070910.GB1831739@tornado.leadboat.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 19, 2014 at 02:09:10AM -0500, Noah Misch wrote: > On Mon, Dec 15, 2014 at 09:27:38PM -0700, David G Johnston wrote: > > Noah Misch-2 wrote > > > Here are a couple of alternatives for the documentation text: > > > > > > The new default tablespace must not already contain any of the > > > database's > > > objects, and no one can be connected to the database. > > > > +1; though maybe... > > > > The newly assigned default tablespace must not contain any of the specified > > database's objects but otherwise need not be empty. Additionally, there > > must not be anyone connected to the database. > > > > This is a bit more verbose, and somewhat implied since newly created > > databases have their default set, by definition, to one hat likely already > > contains objects of other databases in the cluster, but does clarify the > > specific confusion raised here. Re-reading I think the implicit version is > > likely sufficiently clear though. > > That text, too, works for me. I went with cleaner wording that just rearranges the text to avoid the confusion. Attached patch applied. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --mYCpIKhGyMATD0i+ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="alter.diff" diff --git a/doc/src/sgml/ref/alter_database.sgml b/doc/src/sgml/ref/alter_database.sgml new file mode 100644 index 333db5b..95c7ac9 *** a/doc/src/sgml/ref/alter_database.sgml --- b/doc/src/sgml/ref/alter_database.sgml *************** ALTER DATABASE