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 1snIkr-002WFs-AJ for pgsql-general@arkaria.postgresql.org; Sun, 08 Sep 2024 14:19: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 1snIkq-00Exqf-7p for pgsql-general@arkaria.postgresql.org; Sun, 08 Sep 2024 14:19: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 1snIkp-00ExqO-TE for pgsql-general@lists.postgresql.org; Sun, 08 Sep 2024 14:19:03 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1snIkn-0009Lg-39 for pgsql-general@lists.postgresql.org; Sun, 08 Sep 2024 14:19:02 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5365b71a6bdso2324570e87.2 for ; Sun, 08 Sep 2024 07:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1725805140; x=1726409940; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=BAcM/j5qlZj/A0FSUfddEC4Srxl2gegfHXyj1l7jAN8=; b=DmqVpdyuW0I61sK1nxGHy3acJs29W9ui5DtOnBPsmOVf5Qt+BcyjiqpxFOPRjPHHPp fF0MxHxBPVmp7TSgCv/aiH6R4AgC7mH/sI5c6NVxWj3ILLGcqvE1OYVG++PsT09MQC8I 1HiQrqtQRwGzHEBCMfXcU9HG+x2MW8li0R7UoRroyjyI0iLm6a8r4uoe23c0fadrnRui WhYG1X5mqspkylnxv9f+Lcvf6e3doiH5IPQ71DeaKTdl1FAJF0FhoOjgS1rw0B8umX0z vmgbUcU68bYGTR7SkTJlZm/HF+sifjWNBw1NF/EG3N1siAPpJkr6asprs7lGXUG7k4VB Ek6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805140; x=1726409940; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BAcM/j5qlZj/A0FSUfddEC4Srxl2gegfHXyj1l7jAN8=; b=RCPsoAyYRo3QgjOqzfIR6l8NeslvPiVYX/xuuTIzMV/hR4dTyKYnYO3wvlH9TPRJxU W69tv7h+UddGQFK5uy/0sdYD0FGtjVBra9gTEKASFiEYND61LDHXqx4277vMmq+RPgpN bBU3/eNw+0BH9imz1Fkcy8AdD8e7eRDykWgONer35GdvrwLsRjsLfGnGgyeJ5RpeZfYA 8ocxVvYY1ViQfb5WVnjEg8U2zRW0aX1NK5Q/PfHwz9vADqbEmNIFVyahFHx9bbWfVOcc KDDBE90g2dMUrhTM7tX5n4p3v4344XI3k6qxxJBqPBqCpf1jVNI/BMba6tD3ffHkhZWa a0zg== X-Gm-Message-State: AOJu0YzKRC/C91w7ipU6mOs42Wd3RpAPi9lFOD6X473Im4leXLAxfVeU BR0gjd7WmKChrouiEFFbXJYyxwitX/dvlDzBeInGH4We2TLaw1NWbrL1aWAr334= X-Google-Smtp-Source: AGHT+IHO9hJgIv6+Z0EEMntmajO8mzdOSdK4rjFgiWJFkvge+IYRC/N8DfyLsu+2XvGJRTLm0wUwGQ== X-Received: by 2002:a05:6512:33c8:b0:536:53f7:26f9 with SMTP id 2adb3069b0e04-536587a677amr5397859e87.3.1725805138921; Sun, 08 Sep 2024 07:18:58 -0700 (PDT) Received: from [10.0.3.10] ([213.235.133.41]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25d3eec8sm208147166b.191.2024.09.08.07.18.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:18:58 -0700 (PDT) Message-ID: <47b356914fd6ccfd828ffd62d00ff2bfce37f076.camel@cybertec.at> Subject: Re: How to cleanup transaction after statement_timeout aborts a query? From: Laurenz Albe To: Istvan Soos Cc: pgsql-general@lists.postgresql.org Date: Sun, 08 Sep 2024 16:18:32 +0200 In-Reply-To: References: <8fabad5643b3b10355c95e30f4e758c17640d0d0.camel@cybertec.at> <1643e5dbd663bbbc8f2458c8dab08da342529643.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2024-09-08 at 16:02 +0200, Istvan Soos wrote: > On Sun, Sep 8, 2024 at 3:41=E2=80=AFPM Laurenz Albe wrote: > > You must be doing something wrong then, because it works: >=20 > And you are right, I was doing something wrong: >=20 > [...] >=20 > I'm sorry for the noise. No problem; I'm glad you could find the stumbling stone. > Btw. Is there any guideline on how to write the client libraries or > recommendations/tests that a client library should follow? I'm afraid this question is too generic for an answer... I'd say it should be easy and intuitive to use, and should be as robust as possible (return meaningful error messages rather than crash). Yours, Laurenz Albe