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.94.2) (envelope-from ) id 1qMTz8-002VcI-Km for pgsql-admin@arkaria.postgresql.org; Thu, 20 Jul 2023 13:46:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qMTz7-007ybU-21 for pgsql-admin@arkaria.postgresql.org; Thu, 20 Jul 2023 13:46:25 +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.94.2) (envelope-from ) id 1qMTz6-007yYh-Mw for pgsql-admin@lists.postgresql.org; Thu, 20 Jul 2023 13:46:24 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qMTz2-000erP-Vk for pgsql-admin@lists.postgresql.org; Thu, 20 Jul 2023 13:46:24 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b93fba1f62so11850191fa.1 for ; Thu, 20 Jul 2023 06:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689860780; x=1690465580; h=content-transfer-encoding:in-reply-to:disposition-notification-to :to:from:references:content-language:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=QTLYHgH+Br21ZvVGysHn/bzJ+S16b8450lyzsFtscBw=; b=mSsQQGfX9rpK1xpsmZyzQmypNz7R38efW4G1Vo+NhBfcoB8NOkMroMpZAn5CyU23KB FLXV/VoBTK1FYbp/RKZ4nsC08qsYwpCs9VaIBGpCPB2K3+c6uRiPMi0j7piZyNCDrkna zdCjfkZU8eY0Qk8AVD3vyT0V9W3pQwYYGj8j8rhp87d+wk4Yw2ipZBtZGwkugR7MNEAr 0QXn1DSHNUaN8eDTx/7aD+sXpjsyZn2oi9hz90x5p/VWy3dlAxAPYBXLtqBeQC3qzC5G R5Vmua431DLvJmJSmcghRae+ch0t3rAjL+VQgDxibyHfcy1/vOxEj0mi1hXboqy9R9hv IYJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689860780; x=1690465580; h=content-transfer-encoding:in-reply-to:disposition-notification-to :to:from:references:content-language:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QTLYHgH+Br21ZvVGysHn/bzJ+S16b8450lyzsFtscBw=; b=E5LvMcHEEaY7kURpp4dMmFhkw8PXqyULkGKImNSrSnd2dJKsB0qGfp/EPioji/gfbQ eF4i52ojBqpKGVJnX63jr0AXQ3QZEwqebybApCkh6/ADdA8KZNg6N7un91j7J9Qrugvv lj4q7GsVilcLk5CdevVm0zDbeieQXyNJiB6UE6RzSl1CvwoOXCgde3lllEjgpOjTD3Mh KveMiL+6ZbgcGTY6LrGPmKhMQXLrvQ5Fr+vdYf9EMJ8KSfFGJqDHqSyBwuz1slhHzNCK abP/mdxdefWkP09njiklvjhm+/eJggbraDc9z9U3eTD44+CsS18+PkdhYTxSoZohTYK4 hoGQ== X-Gm-Message-State: ABy/qLY9lRLAeaWGbUzvvq7cgomPuxwDZNo+hjRz27GxptzgnKFaiKgV RnBUTeON3FKwV24R2nWacd3dVsUeR6k= X-Google-Smtp-Source: APBJJlE8w99hl8fVqTKFCSMFO70YikeCXdbVmRF8fHecLSqC42Bmubl1D2uOLzvBeRKGqQFc+r7cQQ== X-Received: by 2002:a2e:9797:0:b0:2b6:d326:156d with SMTP id y23-20020a2e9797000000b002b6d326156dmr2380005lji.19.1689860780136; Thu, 20 Jul 2023 06:46:20 -0700 (PDT) Received: from [10.1.1.193] (94-224-49-27.access.telenet.be. [94.224.49.27]) by smtp.gmail.com with ESMTPSA id l14-20020a1c790e000000b003fbd04ecdc6sm3958488wme.5.2023.07.20.06.46.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jul 2023 06:46:19 -0700 (PDT) Message-ID: Date: Thu, 20 Jul 2023 15:46:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Upgrade from PG12 to PG Content-Language: nl, en-US, fr References: <3901e0da-819b-5b6d-bb57-c29f6d384725@gmail.com> From: Jef Mortelle To: pgsql-admin@lists.postgresql.org Disposition-Notification-To: Jef Mortelle 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 Hi, Many thanks for your answer. So: not possible to have very little downtime if you have a database with al lot rows containing text  as datatype, as pg_upgrade needs 12hr for 24 milj rows in pg_largeobject. Testing now with pg_dumpall en pg_restore .... I think, postgresql should take this in high priority to  resolve this problem. I have to make a choice in the near future: Postgres or Oracle, and that database would have a lot of datatype text. Database would have 1 TB. It seems me a little bit tricky/dangerous to use Postgres, just for being able to upgrade to a newer version. Kind regards. On 20/07/2023 13:43, Ilya Kosmodemiansky wrote: > Hi Jef, > > > On Thu, Jul 20, 2023 at 1:23 PM Jef Mortelle wrote: >> Looking at the dump file: man many lines like SELECT >> pg_catalog.lo_unlink('100000'); >> >> >> I have the same issue with /usr/lib/postgresql15/bin/pg_upgrade -v -p >> 5431 -P 5432 -k >> >> >> Whats going on ? > pg_upgrade is known to be problematic with large objects. > Please take a look here to start with: > https://www.postgresql.org/message-id/20210309200819.GO2021%40telsasoft.com > >> >> Kind regards >> >> >>