Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLyXZ-0002zu-2b for pgsql-general@arkaria.postgresql.org; Sat, 19 Oct 2019 23:53:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLyXW-0003ju-21 for pgsql-general@arkaria.postgresql.org; Sat, 19 Oct 2019 23:53:42 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLyXV-0003gB-I8 for pgsql-general@lists.postgresql.org; Sat, 19 Oct 2019 23:53:41 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLyXR-0002Kl-Mr for pgsql-general@lists.postgresql.org; Sat, 19 Oct 2019 23:53:40 +0000 Received: by mail-wr1-x441.google.com with SMTP id o28so9882181wro.7 for ; Sat, 19 Oct 2019 16:53:37 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nceuhQDszJAScya45EYrm2HaRuD6Nu8D2Xc8AkZhlEM=; b=Wpdg3Ab8vyW35hRCdD7Eyk72NDFl0icinhEVi3vhm6MPftbhtZZCDT7+DP5WD3n6qu og40HSHwknCAfzPDBg2eC+l7ryOE3vRf2GRHUr6UohLfHfywPhtS4SAd9DTgVxMcJKY9 G19T1/ZNe2nRhTuvgCSz24R2+7GHdAOc+dsI21kuXHhD9aktTgVXApexS2dMN32guVDP yXYjAOolYhNynzAwj9GCSDINRgQkCTtcSblMy5HRDX3ubMT+71ln50ne1EhrTSNFt7r7 Fz9WMvPd0CQQ1AL2UNCSYBlX3034zlnf5zdVBnLvxqosURGTAPSm+97QtSC3HZv1svtd f97Q== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nceuhQDszJAScya45EYrm2HaRuD6Nu8D2Xc8AkZhlEM=; b=Et4h4j6L5jK6VSu1rPMfUrKbD6zJDH9Uv4cWPxFerT8liOS+KJJoT6puAAJk/Ft7uz kdaeP6ok35IUX8L5eJYlUCBYQmHJPn+uimLskfVpbJDjjqtvzAXcc8m+MpY1aBvGbOnU REKtFZknEf33LxJy7j55BYPaWLC8pJ39YXi89DMpUJAn4iFln6nexLiw3bgwX0U00G4/ svAcp8otTBhRXxHfraLpMAZg+FCSGd15xJAsPVoaLNtZRJPvc5N/TAr79Vo6ZFfxOoVk b3SHssdL3Pu/27MiBloR6WbwgCsTbHwTHJadG4LAk1JZ3OxWoEIGlnA3snfjzI1EKSYY dtHg== X-Gm-Message-State: APjAAAUiE8+iHC1vHhuErK5onx+aEzyaKo+74gTbNPayR9nZfaeR1r6I i6PUAmIqZdGCUnmqKcQG412Sgg== X-Google-Smtp-Source: APXvYqzgr9yEwbtkliZBiLZMVRGZfrzOSmxKhCoPrSi7YPldfDu9gJh291M2J/YzlG9qgAbLswb9+Q== X-Received: by 2002:adf:a4cf:: with SMTP id h15mr13298908wrb.222.1571529216727; Sat, 19 Oct 2019 16:53:36 -0700 (PDT) Received: from localhost (ip-86-49-253-183.net.upcbroadband.cz. [86.49.253.183]) by smtp.gmail.com with ESMTPSA id 79sm15396107wmb.7.2019.10.19.16.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2019 16:53:35 -0700 (PDT) Date: Sun, 20 Oct 2019 01:53:34 +0200 From: Tomas Vondra To: Adrian Klaver Cc: Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general Subject: Re: releasing space Message-ID: <20191019235334.6surfhxnd2af4bnq@development> References: <20191019124429.6htvmc7rhoc2m4hs@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Oct 19, 2019 at 04:34:32PM -0700, Adrian Klaver wrote: >On 10/19/19 4:17 PM, Julie Nishimura wrote: >>Thank you, Thomas. Do you know if it is safe to replicate 9.6.2 >>(smaller) db to 9.6.15 (larger capacity) using pg_basebackup? Would >>it be considered as an upgrade? > >pg_basebackup backups an entire Postgres cluster which will be many >databases. So when you say db do mean a Postgres cluster or an >individual database? > My understanding is Julie wants to create a copy of a 9.6.2 cluster using pg_basebackup and then run 9.6.15 on it. That's OK, it's essentially a minor version upgrade. FWIW Julie, please don't top post - it just makes it harder to follow the discussion. Also, this seems like a completely separate question, unrelated to the DROP DATABLASE one. It might be better to start a new thread instead of repurposing an existing one. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services