Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wVbD4-0024X0-1z for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2026 20:32:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVbC3-00EbH7-1T for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2026 20:31:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wVbC2-00EbGy-1p for pgsql-general@lists.postgresql.org; Fri, 05 Jun 2026 20:31:03 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wVbBz-00000001UH5-36Zl for pgsql-general@lists.postgresql.org; Fri, 05 Jun 2026 20:31:02 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6B2061400141; Fri, 5 Jun 2026 16:30:57 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 05 Jun 2026 16:30:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1780691457; x=1780777857; bh=VONHvMrOQR78xKIGSjfVzLQYIZJ3ILtAL6UkNr6wEYU=; b= XzBUfEGqs1OR+MSXKeciIlgyr/BfubhpNUxVOC2Ksz8Gue7ZZ747XkvY4l2Ma/qO KlrUFl3uRXeWwV2enf6QVK6yldjRWgPPW/br9eJmadulXb+ixl2LyrVcAKEM9CxY xd7QzSbSMJPnVuIboOm8P2pC0mr89AKGy0RGDpTB48E8Snc0nWL6caNzSO9qdAli 5VNtF4lGORXkHPG+/fvELffDRQHFF5lljpNjGt8VVTXhTVvNb+zV7qQDWlJ4OzAy Yyi/VZeFPhzsHtNWBH5EH7zdF7KmqN/QC9bQ/j6e80ODsO7UeUz0+2LzwSJ2HHql kqUAEIvarcLpoCG5Sw//uA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1780691457; x=1780777857; bh=V ONHvMrOQR78xKIGSjfVzLQYIZJ3ILtAL6UkNr6wEYU=; b=V7JlxSFwemUUfql17 wHhRUceDyefqcB9Zi3Wp0JydTpJmvaK9FN8xJs4/g/3osFhqXtdpMy9+rT+t0DVN +5S9EQlcTI8ttvVfsi2YAvF7BlKOYar9XJpv0QCYa/0HKMCMLhKyUAloQMwuoJ99 oOJQiZs1t/NdflIHsKiPC4WviBdll967wk8Ygql9nti3z5oZkJx9GlHlceAJS2XA NI7KDTf2u3O2Cww2kKFht3toMazA5h2uLKGzwtZp8PvSNl3xrC4kwa+yz7cZWBKW kiI7GVmXQCAbkS9YmV15PtYvfNXGl6AfgG3X0AD3KoLuhOLn56p2JUKTnhOfqFVk XTuXQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEH5kMlezCgBiNF7wa4lFO/na3atJF5YLUzMUmju88MjhUIbIO4eQFZT6xIJEqpqT A08awqthjb/kozRwNAQS/KGc+dxBEI2W8cI+u+7+6CV1J1QSgPPrRGO13RHtcaPmixiXQY CJA8KLMCaIyao76wgnTiu4nkd/2yXxNKtelicTosHrRMsUgVUx2OrinDr71RdaGmyaiJer 2r8n4Jg5qcN6ACX61+WSnbO5wQ5N3o//pNXtr/mrKGlANe/RHHeCxZdzH/ORnvZDhY2n1P yt47VOJJqWv+BnTjKX/ZYd842O00Os3204vl2xhtfKCtUyVrLUPOen1Z4h50Nouz7acpQo bt6MfPbljLWRZaOV8UKxlZNDqZ/Kji7o1bmg39BHECasOVIb1j/uX3IdIB2wF5tVC3Z0bZ JNNruop6+HKqD6XwhkAWm025sRrwLQ8KeJk5Ciq8OpNbIyI/n9QBeQID1O0ZGX+pWC1D+z AS5eoX3G06nFZ+0r3w5d/3sZmlAvNOLa4Kf8YKA9Qs6qaKjATgg8t2AwKCkficDMqlAzpQ q2YxD8ARTgrXEZLGv7YXg8tvGRexoqa6cbbNWfFCg8qHT2F0qfcYTQ2/0v26MnAXrATo8l eDsDeOI1ilyhWQVZbyQyemWDdqydfCg9LylisJ3IR6m1MK/6D/N1+M9h0XNQ X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Jun 2026 16:30:56 -0400 (EDT) Message-ID: Date: Fri, 5 Jun 2026 13:30:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres 12 update to new major version To: =?UTF-8?B?Qm9yaXMgRG92xI3DrWs=?= , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/5/26 5:11 AM, Boris Dovčík wrote: > Hello all, > > I have a question regarding the update of the production database > (multiple TB of data) from version 12 to higher major version. We would How many TB? > like to jump to 15 or 16. DB is installed on a Linux server with one > replica on another, it is not on cloud. What replication is being done now? Where are the servers relative to each other network distance wise? > > First question is should we perform updates one by one? 12 -> 13 -> 14 > etc. or is it viable to jump to 16 right away? (We have few functions > but usually its plain tables) > > Second we are contemplating options for the update since we are limited > with downtime. We could get 4 hours of downtime for the whole update > (either via pg_update or dumps). We are not sure how to estimate the Did you mean pg_upgrade? > time for direct update or dumps. What would be the recommended way for it? > > One option we see could be logical replication to the new major version > on a new machine, but we received feedback that in our setup it might What was the feedback that indicated it was not advisable? > not be recommendable. Does it make sense to try logical replica? What > would be the downsides of it? > > Best regards, > Boris Dovčík -- Adrian Klaver adrian.klaver@aklaver.com