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 1u6R4s-00FfOy-3u for pgsql-general@arkaria.postgresql.org; Sun, 20 Apr 2025 09:35:06 +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 1u6R4p-009YmG-UW for pgsql-general@arkaria.postgresql.org; Sun, 20 Apr 2025 09:35:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u6R4p-009Ym7-JJ for pgsql-general@lists.postgresql.org; Sun, 20 Apr 2025 09:35:04 +0000 Received: from sm-r-008-dus.org-dns.com ([84.19.1.236]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u6R4n-00106Y-0t for pgsql-general@lists.postgresql.org; Sun, 20 Apr 2025 09:35:03 +0000 Received: from smarthost-dus.org-dns.com (localhost [127.0.0.1]) by smarthost-dus.org-dns.com (Postfix) with ESMTP id CD500A0538 for ; Sun, 20 Apr 2025 11:34:58 +0200 (CEST) Received: by smarthost-dus.org-dns.com (Postfix, from userid 1001) id C1300A1223; Sun, 20 Apr 2025 11:34:58 +0200 (CEST) X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,DMARC_PASS, KAM_INFOUSMEBIZ,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 Received: from ha01s018.org-dns.com (ha01s018.org-dns.com [62.108.32.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smarthost-dus.org-dns.com (Postfix) with ESMTPS id 90075A0538 for ; Sun, 20 Apr 2025 11:34:58 +0200 (CEST) Authentication-Results: ha01s018.org-dns.com; spf=pass (sender IP is 146.185.68.202) smtp.mailfrom=thiemo@gelassene-pferde.biz smtp.helo=dummy.faircode.eu Received-SPF: pass (ha01s018.org-dns.com: connection is authenticated) Date: Sun, 20 Apr 2025 11:34:56 +0200 (GMT+02:00) From: Thiemo Kellner To: pgsql-general@lists.postgresql.org Message-ID: <277c713f-452c-4449-9897-16a9738077eb@gelassene-pferde.biz> In-Reply-To: <20250420091033.n437fdrkihtjrncd@hjp.at> References: <20250420091033.n437fdrkihtjrncd@hjp.at> Subject: Order of update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: <277c713f-452c-4449-9897-16a9738077eb@gelassene-pferde.biz> X-PPP-Message-ID: <174514169831.1718566.6270536747244996127@ha01s018.org-dns.com> X-PPP-Vhost: gelassene-pferde.biz X-POWERED-BY: wint.global - AV:CLEAN SPAM:OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Very interesting. But is the sort overhead worth it? Why not make the constraint deferrable before the update and switch back afterwards?