Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7W4M-0002c3-Ut for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Oct 2018 01:35:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g7W4K-000888-3O for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Oct 2018 01:35:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7W4J-000881-Ox for pgsql-hackers@lists.postgresql.org; Wed, 03 Oct 2018 01:35:15 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g7W4C-0007f9-7f for pgsql-hackers@postgresql.org; Wed, 03 Oct 2018 01:35:15 +0000 Received: by mail-qt1-x843.google.com with SMTP id u34-v6so4268782qth.3 for ; Tue, 02 Oct 2018 18:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=A3hCHaWpr2wAMVblmw99aVVZCXZq/W853HSYHshXryk=; b=fo40DIxrKv5M98g14DCVIeOudzJUgswLWwqoO/GueDJQ+KAnDlwBXnAFvM3oKjPFCS 5uGeIScTOsSYW1XNpY7j9uGjl8U8uGB7U+tmkwac3xplPa0KZv+l+eXjTKMd6VwTAEjB BGq26beDtt2v7vndVs9w1jcJb5gCs3WXUt3dEKgoWBkWVc0HiovMwEGE4/ZVCqX48P5Z wgXnSSbEqGMljCUGyqhm9ftMewpRdUsD4OHSSerTc4Lz8cbuezjcnRF+zBypWlXmAVAo wmKBofou5FBaFXC+AYrR7H85i9CmVGGAXjMTdWVYdM3YyTYtO1nVlYCFKe/z8AHgBc9v /sPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=A3hCHaWpr2wAMVblmw99aVVZCXZq/W853HSYHshXryk=; b=ME+g5XrA92Kspe9ZX3RiGc4TOllg6ODJGUS/JT+0snE/YvedhZ2kBaPJkFIR1TNaSj otbn8h04vn3gWpDN1yejB6TdzoLSf295ua60uwwwU5VwOIAgChD6/wsgAVciuqiBQV6E Rn3kyBDyLm8NJ/aQn1kde4yN8uHXxHSKWmjy1J16jrCir5etePkykcMOFnVPoWjsQrE8 mXpFRJTuwEdb20BcL2iCSus389x/cjBLhlVuehp7XxD3bUp2vOvQXCdIhv4tKLw2WMME HjcVx6/gMl+smXRiGF3v5hGVQ38GdQXQ8qSLl+9MN1894OExKZxMjnxFgG2ul2ZNDSUu mKuA== X-Gm-Message-State: ABuFfogzmC4Ep9Cw8mFh6vBVHvu3fpXoB+B7jov679MemcyUyAyjrL+X FY79OnyGdRI8y6di6r3kxUI7EQ== X-Google-Smtp-Source: ACcGV60pi1HV8SKNjJ2kYnP1IdhtX+0mBBP9cXnWb9sD7PuPaPV/5nSROlnIdNxPT7G5VX0Zss7brg== X-Received: by 2002:a0c:9361:: with SMTP id e30-v6mr2655085qve.73.1538530505308; Tue, 02 Oct 2018 18:35:05 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.48.211]) by smtp.gmail.com with ESMTPSA id u23-v6sm1572934qth.45.2018.10.02.18.35.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 18:35:04 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 84E29469; Tue, 2 Oct 2018 22:35:02 -0300 (-03) Date: Tue, 2 Oct 2018 22:35:02 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Peter Eisentraut , pgsql-hackers , Bruce Momjian Subject: Re: file cloning in pg_upgrade and CREATE DATABASE Message-ID: <20181003013502.gvb5rkopfxtqk2yh@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181002233248.GA2609@paquier.xyz> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Oct-03, Michael Paquier wrote: > There could be an argument for having an automatic more within this > scheme, still I am not really a fan of this. When somebody integrates > pg_upgrade within an upgrade framework, they would likely test if > cloning actually works, bumping immediately on a failure, no? I'd like > to think that copy should be the default, cloning being available as an > option. Cloning is not supported on many filesystems anyway.. 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services