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 1nbMjF-0002jP-Ro for pgsql-general@arkaria.postgresql.org; Mon, 04 Apr 2022 13:26:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nbMjE-0000b7-OR for pgsql-general@arkaria.postgresql.org; Mon, 04 Apr 2022 13:26:44 +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 1nbMjE-0000ay-EK for pgsql-general@lists.postgresql.org; Mon, 04 Apr 2022 13:26:44 +0000 Received: from gw2.antarean.org ([141.105.125.208]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nbMjB-0006TV-Hh for pgsql-general@lists.postgresql.org; Mon, 04 Apr 2022 13:26:44 +0000 Received: from localhost (localhost [127.0.0.1]) by gw2.antarean.org (Postfix) with ESMTP id 4KXBFY5l3Rz8vPH for ; Mon, 4 Apr 2022 15:19:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from gw2.antarean.org ([127.0.0.1]) by localhost (gw2.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tQMEjh3BQ7qU for ; Mon, 4 Apr 2022 15:19:29 +0200 (CEST) Received: from mailstore1.adm.antarean.org (localhost [127.0.0.1]) by gw2.antarean.org (Postfix) with ESMTP id 4KXBFY4cb6z8v7q for ; Mon, 4 Apr 2022 15:19:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailstore1.adm.antarean.org (Postfix) with ESMTP id 4KXBPr6rGtz15 for ; Mon, 4 Apr 2022 15:26:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from mailstore1.adm.antarean.org ([127.0.0.1]) by localhost (mailstore1.adm.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z7PN3KWItB37 for ; Mon, 4 Apr 2022 15:26:40 +0200 (CEST) Received: from iris.localnet (iris.adm.antarean.org [10.55.16.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mailstore1.adm.antarean.org (Postfix) with ESMTPSA id 4KXBPr5hPxz13 for ; Mon, 4 Apr 2022 15:26:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=antarean.org; s=default; t=1649078800; bh=hrM5z9k3Xy+XKBZpenD+a1kbt8CN29IRmT1PXQOVXSY=; h=From:To:Subject:Date:In-Reply-To:References; b=MuhXNjr4taErjhNv2glMh9HswUBkyzqPnWxVTxYorocqZcmUXpetXQmB97o7h8m8Y H4606xRp1rT0DUugZtjGC8OM842IwaRKqur6Pn7cmHcO7SOgORZBC2D6qHLXmdo64x xEKT8Hk3TZ8/SbF0NvhkfOZou8V6bGbRvm//NKyU= From: "J. Roeleveld" To: pgsql-general@lists.postgresql.org Subject: Re: Transaction and SQL errors Date: Mon, 04 Apr 2022 15:26:40 +0200 Message-ID: <1824160.tdWV9SEqCh@iris> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Monday, April 4, 2022 1:44:40 PM CEST David Rowley wrote: > On Mon, 4 Apr 2022 at 23:33, Sebastien Flaesch > > wrote: > > Any arguments I could give to programmers? Maybe: > > "You better replay all SQL of the whole transaction... (and make them as > > short as possible!)" ? > > There are SAVEPOINTs [1]. > > David > > [1] https://www.postgresql.org/docs/current/sql-savepoint.html Thank you! :) I wasn't aware of this yet, but it will make some of my code easier to read . -- Joost