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 1iT79R-0007Sw-DO for pgsql-docs@arkaria.postgresql.org; Fri, 08 Nov 2019 16:30:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iT79Q-0001PG-5f for pgsql-docs@arkaria.postgresql.org; Fri, 08 Nov 2019 16:30:20 +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 1iT79P-0001P9-Ll for pgsql-docs@lists.postgresql.org; Fri, 08 Nov 2019 16:30:19 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iT79I-0000C8-P5 for pgsql-docs@lists.postgresql.org; Fri, 08 Nov 2019 16:30:18 +0000 Received: by mail-qt1-x842.google.com with SMTP id t20so7094219qtn.9 for ; Fri, 08 Nov 2019 08:30:12 -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=5UG9rQ0Sp+Ajq88MDgNDaiF5MfsLem6xDPV0ht/+Mdk=; b=ifHCaAvevE7Xn7QWXXzntHzm3yMuxPX6I8iGvuoZbFse+IDDKp0PrFEKRikWKJDPVN 34pxdHWTZGqdqaMu6BP7M6R1Jso//f2yzSo84ZgqYk43s+qg2Nnmn+fL2tF71JoVhqFF swoJU7/9ypx6WYUFgNOno81GHYF2kDVmlzjFwNeefXe3kmh+iE9oq/aZIhph073MeHQi b0ZqoVoK2aZtVLunCqqasbGqLM+v5LE7pOxs2c6KPgj6w8ZbRKb93N7Lc1GrJkIx2zhf EEEyyYRawfHQ07/FcBKd8CKPfq/Y5scM6Jx5mx5aGh6X3J0u6Eypf0KwSnnWe1iMd20O TBLQ== 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=5UG9rQ0Sp+Ajq88MDgNDaiF5MfsLem6xDPV0ht/+Mdk=; b=clJVCsKx9e9lUkUhd7resXH2XIEdewmVqjDgUycla4N0yJEPFEXqzc60VA90Ia/R9k eBga7TFnOpv0nviIPkfLUDA6NxhZIG5pUY99hW03m/i8pvmsmOMHgq2dS4sskijImC4T wqnUnlVr/YGpD70FG2Ev6n96hMBCS4BZLTq2fliyx4yh60YKWMsAGFxa/PBUWAK6eXZX OR5ljtzJIWRGDSXV/qia9ro6ycy28hJEhIBp6cm0gSr58yw5E4Js0+jyQYZJdtaTDm7x AytLZ/L/BItYWt8DSe5uc8EFPP1UMHnTh7IwSxzzjajQOwmyWS818nifH/8mhdOAwAow BDDA== X-Gm-Message-State: APjAAAUm/0vDAHSbi5pXhWJN2oXo+uJiQMJ2Uiko+PDGHaY8v4djOJvR LKQkiEgNPStuaTnMKw4ax56KbLCBrTGGXqPdAFEuszcqXdl1nmq+SFBqAqodj1YWQravOLvp4zh pBVPqhbwTCQYyXYb6tHePGHyoemvifMw3yPwx5fkI7eSOYHp374hv21mWp6hZQW+CKpJXMWHpvY KRHtWZ+JtdkaTn X-Google-Smtp-Source: APXvYqzHtdBxce+ZekJF4Gjs7J0ubVmxjJoo55ArDR4NSaP4ZWaNFWMX1HEzBQSdyZkFbtJQJ2DZew== X-Received: by 2002:ac8:2fba:: with SMTP id l55mr11832562qta.167.1573230611564; Fri, 08 Nov 2019 08:30:11 -0800 (PST) Received: from nimloth.alvh.no-ip.org (ip-49-2-52-196.nyc.us.northamericancoax.com. [196.52.2.49]) by smtp.gmail.com with ESMTPSA id f24sm2906485qkh.81.2019.11.08.08.30.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 08:30:10 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 42A3B300ABB; Fri, 8 Nov 2019 13:30:07 -0300 (-03) Date: Fri, 8 Nov 2019 13:30:07 -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: <20191108163007.GA1228@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1417.1573226360@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 --y0ulUmNC+osPPQO6 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: > > Hmm. Maybe we can say "pristine database" and then add this explanation > > in a parenthical comment: > > > This is particularly handy when restoring a > > pg_dump dump: the dump script should be restored in a > > pristine database (one where no user-defined objects exist and where > > system objects have not been altered), 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. > > 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". The second one is for "virgin database" and the patch has the effect you describe. The third one is also s/virgin//. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --y0ulUmNC+osPPQO6 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v2-0001-No-more-virgins.patch" diff --git a/doc/src/sgml/manage-ag.sgml b/doc/src/sgml/manage-ag.sgml index 0154064e50..7e7f0ed00c 100644 --- a/doc/src/sgml/manage-ag.sgml +++ b/doc/src/sgml/manage-ag.sgml @@ -197,15 +197,17 @@ createdb -O rolename dbnamePostgreSQL. template0 should never be changed after the database cluster has been initialized. By instructing CREATE DATABASE to copy template0 instead - of template1, you can create a virgin user + of template1, you can create a user database that contains none of the site-local additions 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 (one where no user-defined objects exist and where + system objects have not been altered), 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..e56aca6d30 100644 --- a/doc/src/sgml/ref/create_database.sgml +++ b/doc/src/sgml/ref/create_database.sgml @@ -52,11 +52,11 @@ CREATE DATABASE name By default, the new database will be created by cloning the standard system database template1. A different template can be specified by writing TEMPLATE name. In particular, - by writing TEMPLATE template0, you can create a virgin + by writing TEMPLATE template0, you can create a database 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 template1. --y0ulUmNC+osPPQO6--