pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: shurutov@gmail.com
Subject: BUG #16214: Settings is not copy
Date: Fri, 17 Jan 2020 04:23:56 +0000
Message-ID: <16214-aee287cfd82762b4@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16214
Logged by:          Michail Shurutov
Email address:      shurutov@gmail.com
PostgreSQL version: 11.6
Operating system:   Gentoo, RHEL
Description:        

I downloaded and ulpoaded into local PostgreSQL instance demo database from
Postgres Professional: https://postgrespro.ru/education/demodb
Than I made copy as "CREATE DATABASE demo_small template demo", after this I
noticed:
postgres=# \c demo                                                          
   
You are now connected to database "demo" as user "postgres".                
   
demo=# select name,setting from pg_settings where name = 'search_path';     
   
    name     |     setting                                                  
   
-------------+------------------                                            
   
 search_path | bookings, public                                             
   
(1 row)                                                                     
   
                                                                            
   
demo=# \c demo_small                                                        
   
You are now connected to database "demo_small" as user "postgres".          
   
demo_small=# select name,setting from pg_settings where name =
'search_path';   
    name     |     setting                                                  
   
-------------+-----------------                                             
   
 search_path | "$user", public                                              
   
(1 row)                                                                     
   
                                                                            
   
demo_small=# \q

Parameter "search_path" was not copied.

And command "ALTER DATABASE" was not in included into dump made by
pg_dump:
mshurutov@desktop fromarch $ sudo -u postgres pg_dump -C demo_small >
/var/tmp/demo_small.sql
mshurutov@desktop fromarch $ grep "ALTER DATABASE" demo-small-20170815.sql
ALTER DATABASE demo SET search_path = bookings, public;
ALTER DATABASE demo SET bookings.lang = ru;
mshurutov@desktop fromarch $ grep "ALTER DATABASE" /var/tmp/demo_small.sql

ALTER DATABASE demo_small OWNER TO postgres;
mshurutov@desktop fromarch $



view thread (2+ messages)  latest in thread

Message-ID: <16214-aee287cfd82762b4@postgresql.org>
Permalink:  ../16214-aee287cfd82762b4@postgresql.org/
Also on:    postgresql.org/message-id/16214-aee287cfd82762b4@postgresql.org

 · 

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: noreply@postgresql.org, shurutov@gmail.com
  Subject: Re: BUG #16214: Settings is not copy
  In-Reply-To: <16214-aee287cfd82762b4@postgresql.org>
  References: <16214-aee287cfd82762b4@postgresql.org>

* 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