pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedcreate database ... template = ... does not copy configuration parameters values
4+ messages / 3 participants
[nested] [flat]
* create database ... template = ... does not copy configuration parameters values
@ 2014-02-17 08:36 Alexey Bashtanov <bashtanov@imap.cc>
0 siblings, 2 replies; 4+ messages in thread
From: Alexey Bashtanov @ 2014-02-17 08:36 UTC (permalink / raw)
To: pgsql-bugs
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.
Regards,
Alexey Bashtanov
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: create database ... template = ... does not copy configuration parameters values
@ 2014-02-17 08:37 Alexey Bashtanov <bashtanov@imap.cc>
parent: Alexey Bashtanov <bashtanov@imap.cc>
1 sibling, 0 replies; 4+ messages in thread
From: Alexey Bashtanov @ 2014-02-17 08:37 UTC (permalink / raw)
To: pgsql-bugs
sorry
affects v.9.3.1 linux
On 17.02.2014 12:36, 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.
>
> Regards,
> Alexey Bashtanov
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: create database ... template = ... does not copy configuration parameters values
@ 2014-04-19 19:27 Bruce Momjian <bruce@momjian.us>
parent: Alexey Bashtanov <bashtanov@imap.cc>
1 sibling, 1 reply; 4+ messages in thread
From: Bruce Momjian @ 2014-04-19 19:27 UTC (permalink / raw)
To: Alexey Bashtanov <bashtanov@imap.cc>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: create database ... template = ... does not copy configuration parameters values
@ 2014-09-03 03:58 Joe Van Dyk <joe@tanga.com>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 4+ messages in thread
From: Joe Van Dyk @ 2014-09-03 03:58 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: Alexey Bashtanov <bashtanov@imap.cc>; pgsql-bugs
On Sat, Apr 19, 2014 at 12:27 PM, Bruce Momjian <bruce@momjian.us> wrote:
> 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.
Is there a reason for this? I would love for these types of variables to be
copied into backups, restored from dumps, etc.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2014-09-03 03:58 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-02-17 08:36 create database ... template = ... does not copy configuration parameters values Alexey Bashtanov <bashtanov@imap.cc>
2014-02-17 08:37 ` Alexey Bashtanov <bashtanov@imap.cc>
2014-04-19 19:27 ` Bruce Momjian <bruce@momjian.us>
2014-09-03 03:58 ` Joe Van Dyk <joe@tanga.com>
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