Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wbav9-0008VH-IR for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Apr 2014 19:27:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wbav9-0005EH-0Y for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Apr 2014 19:27:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wbav8-0005EB-Bl for pgsql-bugs@postgresql.org; Sat, 19 Apr 2014 19:27:26 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wbav1-0006xD-MJ for pgsql-bugs@postgresql.org; Sat, 19 Apr 2014 19:27:26 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Wbav0-0007Pa-Lf; Sat, 19 Apr 2014 15:27:18 -0400 Date: Sat, 19 Apr 2014 15:27:18 -0400 From: Bruce Momjian To: Alexey Bashtanov Cc: pgsql-bugs@postgresql.org Subject: Re: create database ... template = ... does not copy configuration parameters values Message-ID: <20140419192718.GD23526@momjian.us> References: <5301C9F5.5010209@imap.cc> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline In-Reply-To: <5301C9F5.5010209@imap.cc> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --OBd5C1Lgu00Gd/Tn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 17, 2014 at 12:36:05PM +0400, Alexey Bashtanov wrote: > Hello! > > There is a problem CREATE DATABASE does not copy configuration > parameters values: > > [ACTIONS] > ui_dev_12=# create database bash_test; > CREATE DATABASE > ui_dev_12=# alter database bash_test set log_min_messages TO 'debug5'; > ALTER DATABASE > ui_dev_12=# create database bash_test2 template = bash_test; > CREATE DATABASE > ui_dev_12=# \q > $ psql bash_test2 > psql (9.3.1) > Type "help" for help. > > bash_test2=# show log_min_messages; > > [EXPECTED] > log_min_messages > ------------------ > debug5 > (1 row) > > [RECIEVED] > log_min_messages > ------------------ > warning > (1 row) > > Please could you ether fix this behavior or at least describe > current behavior in docs. I have applied the attached patch to document this limitation. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --OBd5C1Lgu00Gd/Tn Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="template.diff" diff --git a/doc/src/sgml/ref/create_database.sgml b/doc/src/sgml/ref/create_database.sgml new file mode 100644 index 8e99761..5af8981 *** a/doc/src/sgml/ref/create_database.sgml --- b/doc/src/sgml/ref/create_database.sgml *************** CREATE DATABASE ) are not copied from the template + database. + + Although it is possible to copy a database other than template1 by specifying its name as the template, this is not (yet) intended as --OBd5C1Lgu00Gd/Tn Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --OBd5C1Lgu00Gd/Tn--