pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Alexey Bashtanov <bashtanov@imap.cc>
Cc: pgsql-bugs@postgresql.org
Subject: Re: create database ... template = ... does not copy configuration parameters values
Date: Sat, 19 Apr 2014 15:27:18 -0400
Message-ID: <20140419192718.GD23526@momjian.us> (raw)
In-Reply-To: <5301C9F5.5010209@imap.cc>
References: <5301C9F5.5010209@imap.cc>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

template.diff (text/x-diff, 739B) download 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 <replaceable class="PARA *** 187,192 **** --- 187,198 ---- wrapper program around this command, provided for convenience. </para> + <para> + Database-level configuration parameters (set via <xref + linkend="sql-alterdatabase">) are not copied from the template + database. + </para> + <para> Although it is possible to copy a database other than <literal>template1</> by specifying its name as the template, this is not (yet) intended as

view thread (4+ messages)  latest in thread

Message-ID: <20140419192718.GD23526@momjian.us>
Permalink:  ../20140419192718.GD23526@momjian.us/
Also on:    postgresql.org/message-id/20140419192718.GD23526@momjian.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, bashtanov@imap.cc
  Subject: Re: create database ... template = ... does not copy configuration parameters values
  In-Reply-To: <20140419192718.GD23526@momjian.us>
  References: <5301C9F5.5010209@imap.cc> <20140419192718.GD23526@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox