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 1snIV8-002UQx-O1 for pgsql-general@arkaria.postgresql.org; Sun, 08 Sep 2024 14:02:51 +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 1snIV7-00Elyo-F1 for pgsql-general@arkaria.postgresql.org; Sun, 08 Sep 2024 14:02:49 +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 1snIV7-00ElxJ-0p for pgsql-general@lists.postgresql.org; Sun, 08 Sep 2024 14:02:49 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1snIV4-0009Fi-BA for pgsql-general@lists.postgresql.org; Sun, 08 Sep 2024 14:02:47 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5365aa568ceso2570080e87.0 for ; Sun, 08 Sep 2024 07:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725804165; x=1726408965; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=s1w+d1sgaLPP4f3zhp2mU87Fb0uA+vorSEMzRWrVlmk=; b=ji57o2XIghtlXJz4Y7GI5lRwpfAqMta9hTFXd3ZdcSuwtsc7lmci3SABJGGAWHaUG2 l2cHBudPBar3V3Y5fB5Ouanvm4IUrQK+gDYCdzMs3KNDWj7aOgx/NhTFlY94+Zcd4JQb VzqQ9BuqJQfRH6eybumUWjSI5tA8OWwGjXpIXeyh5FK2nWx4/6iXH50hYdAU35MQ5W01 o0hTBoO3J3Q4hCAh/1HLfJaQfnQEqmIgP+W3+xiziILjWGaEFFRjML+/6ZRp1xXsLmZa aYRDpVRAMpYclr9c4C7Z5yR+6VMjnBpVtKbScXhBt2WT1SxeVCsnCQYxxLUdzwKY9CEY I3HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725804165; x=1726408965; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s1w+d1sgaLPP4f3zhp2mU87Fb0uA+vorSEMzRWrVlmk=; b=sEwGBw1+Clc+OBWFqRz8mEhckkF9RmOIcSA07jRpSZFlrx8U8diEvDOKaGPEsA6Gkr 1uZPCH0z3OTIoDOqMDuudkElGwcyPacj0pI06M50fA928QDUkfXRtDaACt76wb1om7qG Hv2H/EJNp8hGoPddZI2Nr2RbF4E1UUbHFLJrlUekQnzuJ26jC+zG4kE4lO21DtBFcPhl qdmFD0+xh/g3ezwaiqaGlSax9G/MkyG9V48vIqXEVCrpwAyst2ImMjV5YYVw3/19fFWb dcXB9nWuZodxz8wRk+ZzjlzrrqEupQ08gzNCtpNDi7ZRzpKlOSk0TfDaBSJxPmvij3Ox 5E8Q== X-Gm-Message-State: AOJu0YwKN3oEpGv6pvjUNRlWlf9UVGSRDJbH+VvQ6rd/tQCb1iSn/vtW mzx+qRJhZ/UHKR7G9oOW1KlFINRoARSjifWwrL5hcQIYoj1qWE7O9A8hOou1fRFozCOH3N+AgsW dHFLKqnrJSztqg7yMlf6lyhkeuslfXg== X-Google-Smtp-Source: AGHT+IHmiOVcUJNTkGQpgQdUWISoTof1RNcRWwHws7LcTZCrqHRLEp3I6HZq5fVWsBuDIUA6/ozXJRe7/gjrC2JsrJc= X-Received: by 2002:a05:6512:238f:b0:52e:fa5f:b6a7 with SMTP id 2adb3069b0e04-536587ac2a9mr6404615e87.13.1725804164484; Sun, 08 Sep 2024 07:02:44 -0700 (PDT) MIME-Version: 1.0 References: <8fabad5643b3b10355c95e30f4e758c17640d0d0.camel@cybertec.at> <1643e5dbd663bbbc8f2458c8dab08da342529643.camel@cybertec.at> In-Reply-To: <1643e5dbd663bbbc8f2458c8dab08da342529643.camel@cybertec.at> From: Istvan Soos Date: Sun, 8 Sep 2024 16:02:34 +0200 Message-ID: Subject: Re: How to cleanup transaction after statement_timeout aborts a query? To: Laurenz Albe Cc: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Sep 8, 2024 at 3:41=E2=80=AFPM Laurenz Albe wrote: > You must be doing something wrong then, because it works: And you are right, I was doing something wrong: The combination of the change and the library internals triggered a SET statement_timeout TO 3000; before the ROLLBACK was sent, and the error message I got was not clear on which statement triggered it. I'm sorry for the noise. Btw. Is there any guideline on how to write the client libraries or recommendations/tests that a client library should follow? Thanks, Istvan