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 1l0PDn-0004ZM-UZ for pgsql-general@arkaria.postgresql.org; Fri, 15 Jan 2021 13:32:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0PDl-0004oU-Px for pgsql-general@arkaria.postgresql.org; Fri, 15 Jan 2021 13:32:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0PDl-0004oM-Fp for pgsql-general@lists.postgresql.org; Fri, 15 Jan 2021 13:32:57 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l0PDj-0001Gc-Hm for pgsql-general@lists.postgresql.org; Fri, 15 Jan 2021 13:32:57 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 190so7378630wmz.0 for ; Fri, 15 Jan 2021 05:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/4sGE4dQfsCiuCKPfFmgOfselipXdi0WSYFfly0Krv0=; b=Ofsyw0B4ln/Jb4Ily6kvaFkR/O0J8IlV4yHJbVpI0puAFGYA7QtROw7j0DALcA6m6Q n7s2l80mnq4uL1nyp7l7EZEkrNBQyk+Cv4YIktXclGm65mkVFIqguxzEqpuTvx70crqv 38BbHHiZF9Hzy1Z4s7W4DwSDWd/9GKLhPyMTnZG2gEmiJfm+jdUAs3ixxtog7gxhmjMn t+FeMi7NJiFID4h91g8f+7SMRdDpFZO2GgLYHNHwJsqnlaDyLAX/nVrvUjGWmpV50wb6 z9iBjWrTjnatLYBC/BqsJvzk6gVE1B1HkrB2V+1icEiI6yjiYRxw0BXxlTQc/5IhgELl yRfA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=/4sGE4dQfsCiuCKPfFmgOfselipXdi0WSYFfly0Krv0=; b=QkJ780D/MB+gQh7mYoyJQ79H+HcPRh0ilp49vwPh7qgwScLnxptShCsyEermvXwEPK fGgL8ZndRlCYJea/fZ1AZIxGSISD3bjQb8id/bwoW4ZiqjanrXNNLshUf6/tQuwbaK4k h7bckvDgoMOqaP34ZinDCJlXoXVYFXNw7tWnP5sIyrXveydv6BlOlmSJHeis+WWhizsW 2qDfS0c/pNH65xKVa2oMVF5suduri3Fqe1oVWhAtVn3GVg/PkDlfVqfautN93uv2jeok H0zQZPPP5G8//9oxtw/BeOLomVBh+o999I9uAVdRMy+LZDV3By2bG9e3fOFlEItkkw1q 4PiA== X-Gm-Message-State: AOAM531M/dau+z1+3Bmz4eWyeIvEdWfjCDcaxuohMO/Y4nbpnk0LGg1V dMGYFS80yqOWukgI9NXMFkY= X-Google-Smtp-Source: ABdhPJy+O5ylPNPNqfbL/RqBNA8a5TFgDRMbPLQc1Hz133I8no5EcON1NdlJYrdrbnZ4j8eeNbNXVg== X-Received: by 2002:a1c:4954:: with SMTP id w81mr8686971wma.60.1610717574518; Fri, 15 Jan 2021 05:32:54 -0800 (PST) Received: from localhost (host-79-47-177-97.retail.telecomitalia.it. [79.47.177.97]) by smtp.gmail.com with ESMTPSA id j9sm15237821wrm.14.2021.01.15.05.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 05:32:53 -0800 (PST) Date: Fri, 15 Jan 2021 14:32:52 +0100 From: Enrico Pirozzi To: Atul Kumar Cc: pgsql-general Subject: Re: upgrade postgres 9.5 to 9.6 Message-Id: <20210115143252.9f2a7bc856cd69ec31a2e740@gmail.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Atul, you could use logical replication and do an hot upgrade between the 2 servers with a zero downtime ;) If you want to use logical replication between a 9.5 , 9.6 version you could use for example pglogical. You could achieve the same result using an external logic replication tool like slony, although pglogical is more powerful. I hope that this can help you Regards, Enrico On Fri, 15 Jan 2021 18:47:51 +0530 Atul Kumar wrote: > Hi, > > I want to upgrade my server from postgres 9.5 to 9.6, but my DB size > is in TBs and I want to do it in minimum downtime (2-3 hours) so > please help me how should I perform it. > > > Please share the document, if possible, it will be grateful. > > > > Regards, > Atul -- Enrico Pirozzi