Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0itF-0006sh-QW for pgsql-committers@arkaria.postgresql.org; Tue, 16 Dec 2014 03:33:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y0itE-0003T3-MW for pgsql-committers@arkaria.postgresql.org; Tue, 16 Dec 2014 03:33:36 +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 1Y0itD-0003Sw-EJ for pgsql-committers@postgresql.org; Tue, 16 Dec 2014 03:33:35 +0000 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y0it5-00084C-W9 for pgsql-committers@postgresql.org; Tue, 16 Dec 2014 03:33:33 +0000 Received: by mail-ig0-f179.google.com with SMTP id r2so6332805igi.0 for ; Mon, 15 Dec 2014 19:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=y7D5K6lFIEypLQW1y6w8aFuPG+n37vQgIKBjkv3izJw=; b=GUJnET3CrkecGLP9W2nTKMyd+CxYDlZ+9n0tkHeDvAtzUDo4vCwsYc8bqhVpraNhXV YLNK72H4SCA62tdRs/1PnhRF4d5wQcczHVpmNihFc3AmQGsMDGqtVVuTDLIhklu/OPAA QfisH0SxD9Iuo475lRyhUkTB+wK3GHTIdflrQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=y7D5K6lFIEypLQW1y6w8aFuPG+n37vQgIKBjkv3izJw=; b=O9AQEoJ7TjbUKODdB+MdnZS3ooh11ixAMU67n5hblGM/5aeiQXCr93K4qxv8gmmMbr wThYf7tdNJL/dD41J4/wavIzAldxZry+TqAURdUslZFbG1wVSmgjAY85aYIBSXLXRCzK 4J538SOCHBdZyppqC179SllEKHLdt5VHaOfTKNPRNd524RA5iUqXCmt4sK98QjrAIhFs TRsksxLfCTWWoNK0XStxUIn/i8GF5xdvkKITPxEOXYLRoyUpF1bpmOUXcPrqjVlVk4BU QNHe2jMLkjFinr6eYMzTWxwMGy2zwzahsniOqzB7YwtvkVGWElY1FK1PosnOyKmFZ4vn s1tw== X-Gm-Message-State: ALoCoQljYmDT2hK7TpHZnqiRkZEPj6BLox3toXe7v6tzq0PiNW3fWVZbGRhttrR+7IR4E9ZqfvcZ X-Received: by 10.51.17.73 with SMTP id gc9mr538251igd.7.1418700805260; Mon, 15 Dec 2014 19:33:25 -0800 (PST) Received: from gust ([12.130.117.25]) by mx.google.com with ESMTPSA id e63sm3369834ioe.15.2014.12.15.19.33.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Dec 2014 19:33:24 -0800 (PST) Date: Mon, 15 Dec 2014 22:33:12 -0500 From: Noah Misch To: Bruce Momjian Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: doc: restrictions on alter database moving default tablespace Message-ID: <20141216033312.GA5584@gust> References: <20141021053843.GA287253@tornado.leadboat.com> <20141212211450.GA7456@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141212211450.GA7456@momjian.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.7 (--) 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 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. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers