Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0jDx-0007Se-9k for pgsql-committers@arkaria.postgresql.org; Tue, 16 Dec 2014 03:55:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y0jDw-0007we-M3 for pgsql-committers@arkaria.postgresql.org; Tue, 16 Dec 2014 03:55:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y0jDv-0007wY-LU for pgsql-committers@postgresql.org; Tue, 16 Dec 2014 03:54:59 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0jDs-0008SK-Gb for pgsql-committers@postgresql.org; Tue, 16 Dec 2014 03:54:57 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id D79CCDD1D53 for ; Mon, 15 Dec 2014 19:54:54 -0800 (PST) Date: Mon, 15 Dec 2014 20:54:54 -0700 (MST) From: David G Johnston To: pgsql-committers@postgresql.org Message-ID: <1418702094165-5830832.post@n5.nabble.com> In-Reply-To: <20141216033312.GA5584@gust> References: <20141021053843.GA287253@tornado.leadboat.com> <20141212211450.GA7456@momjian.us> <20141216033312.GA5584@gust> Subject: Re: pgsql: doc: restrictions on alter database moving default tablespace MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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 Noah Misch-2 wrote > On Fri, Dec 12, 2014 at 04:14:50PM -0500, Bruce Momjian wrote: >> On Tue, Oct 21, 2014 at 01:38:43AM -0400, Noah Misch wrote: >> > On Sat, Oct 18, 2014 at 02:23:46PM +0000, Bruce Momjian wrote: >> > > doc: restrictions on alter database moving default tablespace >> > > >> > > Mention tablespace must be empty and no one connected to the >> database. >> > >> > The database must not contain any object explicitly assigned to its >> future >> > default tablespace, but that tablespace need not be empty. Objects of >> other >> > databases in the tablespace pose no problem. >> >> I am back to look at this comment, and I don't understand what change is >> being requested. Are you saying it is just the commit message that >> isn't clear? >> >> The new text is: >> >> The new default tablespace for this database must be empty, and no one >> can be connected to the database. >> >> That makes the distinction that only the tablespace for the existing >> database has to be empty, not the entire tablespace. > > No, the commit message accurately describes the change. Your reply helps > me > understand your conception of the software's behavior, but I still read > your > committed documentation text differently. For "the new default tablespace > for > this database" to qualify as "empty", it must contain no object from any > database. A tablespace is a cross-database, unitary object. Each > tablespace > is either empty from every perspective or not empty from any perspective. > 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. > > The database must not contain any object explicitly located in the new > default tablespace, and no one can be connected to the database. Drive-by here but wouldn't saying (or adding) "cluster" instead of "database" solve the confusion? http://www.postgresql.org/docs/9.3/static/creating-cluster.html A link to that section may be worth considering... David J. -- View this message in context: http://postgresql.nabble.com/pgsql-doc-restrictions-on-alter-database-moving-default-tablespace-tp5823550p5830832.html Sent from the PostgreSQL - committers mailing list archive at Nabble.com. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers