Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCHTj-00048Y-PF for pgsql-general@arkaria.postgresql.org; Wed, 17 Feb 2021 07:42:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lCHTi-0007ev-NW for pgsql-general@arkaria.postgresql.org; Wed, 17 Feb 2021 07:42:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCHTi-0007cg-FT for pgsql-general@lists.postgresql.org; Wed, 17 Feb 2021 07:42:30 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lCHTf-0000Mp-Vh for pgsql-general@lists.postgresql.org; Wed, 17 Feb 2021 07:42:29 +0000 Received: by mail-ed1-x530.google.com with SMTP id d2so775493edq.10 for ; Tue, 16 Feb 2021 23:42:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=RsAr75RgRK3Jp5Huv7gdx35TsSltYHsrfdBI1RY/+/I=; b=eCBoVZrfqqVIxwQHgdOgZn7OpgkUbt/ked8BpqVbbNUr+a09DS0zrTNj5t6L2dxzMj QlQgcmi7BKWzk3rFGl/i7lBLIDd0REq9nBgbgF0thBo8KWS41s99xSQK/T6CyR/i7gWg 75Q94gjtvMLRZ99vpeTSBIH+K9y/3gno9o56tQJ8LFNGSO97oP1rFH/6tpYFVfbv3wlD sTwwr0YjizRv4IKrsOaAEeErG28dmP3+NpKzvq61E4dKtq56nsAg4Ily60XnxeAxhIV8 uOBgxjNZbEw7i4fn+jEMi7MV8lNCeYsZGCgPKKmbkjC9qdvz2I3lgPxeJd6AxgGMKZle 6K7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=RsAr75RgRK3Jp5Huv7gdx35TsSltYHsrfdBI1RY/+/I=; b=k9mL1LjA5o6iFpFsnG30rozIgB2g5vcoX0XBFlxh3fQIX27xrsuyK1MLDLuHaYbRpt HxTL5YAZpEOLfirocVXiV86574Yi10BPPtaTDotsDGs+GThjUA+s+G6QNIkqlrF3nz+B auUWfKqLazie2z7EtojMPVbvXCBmVmK3S/Dm4Uo76XR2DVNi9CuP62jrlemaPzNnQpI8 uREF2MhkZauB1J0NRXCSPe/Ka2z2xLppzmrws+dT13wpcaEWv6Pwob0GaIJWBIPBQ+En DYId+Ne2DesWbnbkOZ9MaZDqWlVO0uR5+c0bGa84WQbh66TzS24BmytfJVApUtvHK57V G0ew== X-Gm-Message-State: AOAM532BkMCRpBZctEIyKkMsCIx6VmT6cOyu0gNYPk8/IlYPgI/G4eiQ FGq7I2N78iVBPy6uBM4T3xoTUQ== X-Google-Smtp-Source: ABdhPJxU5MCTDnpA3jb/BLLJt9//VBJbi0vJ7e3c6mYUJF/PI1AQAW3s68FhP0Ie0e1IombML/m05Q== X-Received: by 2002:aa7:cd8c:: with SMTP id x12mr25787859edv.355.1613547746475; Tue, 16 Feb 2021 23:42:26 -0800 (PST) Received: from localhost.localdomain (217-149-169-135.nat.highway.telekom.at. [217.149.169.135]) by smtp.gmail.com with ESMTPSA id ce17sm559121ejc.95.2021.02.16.23.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 23:42:26 -0800 (PST) Message-ID: Subject: Re: delete old cluster after pg_upgrade with -k option From: Laurenz Albe To: Atul Kumar , pgsql-general Date: Wed, 17 Feb 2021 08:42:25 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 2021-02-17 at 11:39 +0530, Atul Kumar wrote: > I have upgrade the postgres cluster from 9.5 to 9.6 using pg_upgarde > utility with -k option. > > Now I just wanted to be confirmed that is it safe to run > delete_old_cluster.sh file as we have used -k option that must created > hard links with old cluster. It is absolutely safe. It would actually be quite unsafe *not* to delete the old cluster, because if anybody managed to start it, data corruption would be the consequence. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com