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: rirans@comcast.net
Subject: BUG #15224: Poor documentation
Date: Sat, 02 Jun 2018 16:53:34 +0000
Message-ID: <152795841489.26728.3358418462419788814@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15224
Logged by:          Rob Ransbottom
Email address:      rirans@comcast.net
PostgreSQL version: 10.4
Operating system:   Linux
Description:        

Hi,

Thanks again for the software.

This applies to 9s, 10s and 11.   Possibly back to 7.3 though the doc has
changed and I am presuming the behavior was the same.
 
In  "22.3. Template Databases" it says:

is not (yet) intended as a general-purpose “COPY DATABASE” facility. The
principal limitation is that no other sessions can be connected to the
source database while it is being copied. 

"Principal" should be "only";  if not please expand upon those limitations.


Likely, a general purpose copy-database command will not be called CREATE
DATABASE; so implying this may become the "COPY DATABASE" is strictly
implementation talk for devs.

Here is fodder.  A rewrite of the quoted paragraph.   I might be missing
some subtlety which makes the cluster-wide reference worthy. 

Copying any database by using it as a template is supported.  This is not a
general-purpose "COPY DATABASE" tool because CREATE DATABASE requires
exclusive access to the template for the duration of the copy.  CREATE
DATABASE will fail if another connection exists when it starts.  New
connections to the source database will fail during the copy.

Rob



Message-ID: <152795841489.26728.3358418462419788814@wrigleys.postgresql.org>
Permalink:  ../152795841489.26728.3358418462419788814@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/152795841489.26728.3358418462419788814@wrigleys.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, rirans@comcast.net
  Subject: Re: BUG #15224: Poor documentation
  In-Reply-To: <152795841489.26728.3358418462419788814@wrigleys.postgresql.org>
  References: <152795841489.26728.3358418462419788814@wrigleys.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