Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iU9Wh-0004wQ-Ql for pgsql-docs@arkaria.postgresql.org; Mon, 11 Nov 2019 13:14:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iU9Wg-00078p-1Y for pgsql-docs@arkaria.postgresql.org; Mon, 11 Nov 2019 13:14:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iU9Wf-00078g-I8 for pgsql-docs@lists.postgresql.org; Mon, 11 Nov 2019 13:14:37 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iU9Wc-0008Vs-1Q for pgsql-docs@lists.postgresql.org; Mon, 11 Nov 2019 13:14:35 +0000 Received: by mail-qk1-x743.google.com with SMTP id q70so11042336qke.12 for ; Mon, 11 Nov 2019 05:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9zYQ9D9D2vo3Zd7EzMaIqAofFaHfnA025k23bA8Ubk8=; b=AuxwdWqmNvPhk10FIH5FVBB5+QGbiDCDg954PBj5elwsZWK6yg2sUmrQHxb/jok42b /shlpPyYHUnBKsYPkhpubbBGraw9wqYwcxnXmyi31ngZO3wB62bD0e+spFA0ALo8MuRQ kU/PkEWDFcGy99QhInL6P15oPbiqCAWDF8w+zHf9CzRBu+Ug9c0kPRLM8UryAboXB0/r w5uIuuOpKdRHs0NZ5dY1Wlbp5rJh48WdW/eF8UN393BzSTVvxskkOswpPdtfJ2Nnu8cy PQS5OEgC6X8Bz3zK/NZWcd7qgYYQYUBOUGJ/TE3KIWDBBC4nDLsAxlzy5273mB1YPHJh zf0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=9zYQ9D9D2vo3Zd7EzMaIqAofFaHfnA025k23bA8Ubk8=; b=NohVwvS36ZnpHILr8G/2IGIdygktpyyS6gg12dPRI8vssnthCJo01AX2cAaCOcYd/f tHmBQ0/SN/0yf/wIaWFaQqEBGeAkj8V3lFN6ZiSOn+aFBB14wOJFbJJkqO34Q+A7dRhF smhZjlxluJ96YJCPDLhLonISRY030BrWflDAMmncleOYy+loJQUSquYinuCFOy54rc6j hYwQL9re1OuwqvoFUvLEJAsjWzRS+LgE0HiLpX00rpjFaV/HFr69mkrbTUsZnCiyX9r5 gONl0yiuA//Cc68c1didJX/fkvjdo/WpdbL4Eyxm+auKl0t2HErB0BP3S0GHTS3OA+Vy AAdw== X-Gm-Message-State: APjAAAWkP65O0NqCOuWo4tmA0q9nk41i2wL1eo6btJJPBodLQkDMFRo8 U19boSIZmeDXOQp0PZhyr4m/YevAoUz0Q8Iw7rk49zY1F//zc4yJXP0PWw0pLy6h/PEbGDghp2x HAYJRBJOO7LGq9ofQ8R5/eh3dTzMe0S9aMji8z/rBff6eCpEeq8RWSnY/XF2Nv+FIXYD1hr9Hzv i/LTsqYlnBG8tc X-Google-Smtp-Source: APXvYqzExfZ1K1siDTnpuSfiVQL0k1N2ldcSj768ewBykGcZCUiail+4ikMOqpqZ8XMg1uo6xYXhzQ== X-Received: by 2002:a05:620a:2112:: with SMTP id l18mr437138qkl.384.1573478072852; Mon, 11 Nov 2019 05:14:32 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id h44sm11499493qtc.1.2019.11.11.05.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 05:14:31 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id DFC56300AA4; Mon, 11 Nov 2019 10:14:29 -0300 (-03) Date: Mon, 11 Nov 2019 10:14:29 -0300 From: Alvaro Herrera To: Tom Lane Cc: Daniel Gustafsson , Bruce Momjian , brian.williams@mayalane.com, pgsql-docs@lists.postgresql.org Subject: Re: The word "virgin" used incorrectly and probably better off replaced Message-ID: <20191111131429.GA11285@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <11820.1573231319@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2019-Nov-08, Tom Lane wrote: > Alvaro Herrera writes: > > On 2019-Nov-08, Tom Lane wrote: > >> So the patch becomes s/virgin/pristine/g plus add a parenthetical > >> definition for the first use? Works for me. > > > Well, there are three uses of the word "virgin". The first is for > > "virgin user", and the patch turns that into just "user". > > Uh, no, read the next lines. In both cases those are referring > to "virgin user database" or "virgin database", and this patch > is removing an important qualifier. It needs to be s/virgin/pristine/ > in all these places. Doh, right. One problem with doing it that way is that the proposed parenthical comment partly duplicates the text immediately following it, so I'm no longer so sure that adding it is good; I think that changing "local additions" to "local additions and changes" might be sufficient, or maybe that is too obscure for novices? For create_database.sgml it does seem to make a little more sense, but I'm not 100% there either. Maybe "changes" can become "database-local system changes"? i.e., By instructing CREATE DATABASE to copy template0 instead of template1, you can create a pristine user database that contains none of the site-local additions and database-local system changes in template1. ... though, argh, "-local" appearing twice makes that look bad too :-( (I'm not sure that it is clear what a "database-local system change" is.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --9jxsPFA5p3P2qPhR Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v3-0001-No-more-virgins.patch" diff --git a/doc/src/sgml/manage-ag.sgml b/doc/src/sgml/manage-ag.sgml index 0154064e50..00ecc2d843 100644 --- a/doc/src/sgml/manage-ag.sgml +++ b/doc/src/sgml/manage-ag.sgml @@ -199,11 +199,11 @@ createdb -O rolename dbnameCREATE DATABASE to copy template0 instead - of template1, you can create a virgin user - database that contains none of the site-local additions in + of template1, you can create a pristine user + database that contains none of the site-local additions and changes in template1. This is particularly handy when restoring a pg_dump dump: the dump script should be restored in a - virgin database to ensure that one recreates the correct contents + pristine database to ensure that one recreates the correct contents of the dumped database, without conflicting with objects that might have been added to template1 later on. diff --git a/doc/src/sgml/ref/create_database.sgml b/doc/src/sgml/ref/create_database.sgml index 4014f6703b..7b48263364 100644 --- a/doc/src/sgml/ref/create_database.sgml +++ b/doc/src/sgml/ref/create_database.sgml @@ -54,8 +54,10 @@ CREATE DATABASE name system database template1. A different template can be specified by writing TEMPLATE name. In particular, - by writing TEMPLATE template0, you can create a virgin - database containing only the standard objects predefined by your + by writing TEMPLATE template0, you can create a + pristine database (one where no user-defined objects exist and where + system objects have not been altered) + containing only the standard objects predefined by your version of PostgreSQL. This is useful if you wish to avoid copying any installation-local objects that might have been added to --9jxsPFA5p3P2qPhR--