pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Bruce Momjian <bruce@momjian.us>
Subject: Re: file cloning in pg_upgrade and CREATE DATABASE
Date: Wed, 3 Oct 2018 10:44:09 +0900
Message-ID: <20181003014409.GC2609@paquier.xyz> (raw)
In-Reply-To: <20181003013502.gvb5rkopfxtqk2yh@alvherre.pgsql>
References: <20181002233248.GA2609@paquier.xyz>
	<20181003013502.gvb5rkopfxtqk2yh@alvherre.pgsql>

On Tue, Oct 02, 2018 at 10:35:02PM -0300, Alvaro Herrera wrote:
> I'm not clear what interface are you proposing.  Maybe they would just
> use the clone-or-fail mode, and note whether it fails?  If that's not
> it, please explain.

Okay.  What I am proposing is to not have any kind of automatic mode to
keep the code simple, with a new option called --transfer-mode, able to
do three things:
- "link", which is the equivalent of the existing --link.
- "copy", the default and the current behavior, which copies files.
- "clone", the new mode proposed in this thread.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (42+ messages)  latest in thread

Message-ID: <20181003014409.GC2609@paquier.xyz>
Permalink:  ../20181003014409.GC2609@paquier.xyz/
Also on:    postgresql.org/message-id/20181003014409.GC2609@paquier.xyz

 · 

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-hackers@postgresql.org
  Cc: michael@paquier.xyz, alvherre@2ndquadrant.com, peter.eisentraut@2ndquadrant.com, bruce@momjian.us
  Subject: Re: file cloning in pg_upgrade and CREATE DATABASE
  In-Reply-To: <20181003014409.GC2609@paquier.xyz>
  References: <20181002233248.GA2609@paquier.xyz> <20181003013502.gvb5rkopfxtqk2yh@alvherre.pgsql> <20181003014409.GC2609@paquier.xyz>

* 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