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 1sNzn8-00BkgX-5C for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Jun 2024 19:00:50 +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 1sNzn6-00DASK-Dm for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Jun 2024 19:00:48 +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 1sNzn6-00DASC-4B for pgsql-hackers@lists.postgresql.org; Sun, 30 Jun 2024 19:00:48 +0000 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sNzn4-004LXq-62 for pgsql-hackers@lists.postgresql.org; Sun, 30 Jun 2024 19:00:47 +0000 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-64b0d45a7aaso19835717b3.0 for ; Sun, 30 Jun 2024 12:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1719774044; x=1720378844; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=04lCaA4CLV/lPgDGH2fo1CxDvk53p9x3pPFS74ki0Q0=; b=Ed5RR7acfCdVWndR1v9B67ULj8dktyjgEHxtDqBHQu9kHe2tnYzddcVEN81L+PWEYY /hEw5FigJH71vWg+mMsYPIB5MqagJt3qCcYlHjI1DtRjf7FGWY0KDqYvzyMN0t6pdo1v SgcCLqPgfAguRfY/g425u11fGxBSYedARH0Z0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719774044; x=1720378844; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=04lCaA4CLV/lPgDGH2fo1CxDvk53p9x3pPFS74ki0Q0=; b=ms7D/IIP3k9ZlChClvF1ePAyjeETDJHo3OuKIJFY6Iz314uU7RlA/17nsXMnDJMuGV sBu5SCrrPxNX0OBUmSyn90rlOqej9Z3eVEMJ9rstjQ+vz56n8avxTYw78QjNuOuRt5j9 otxTdd5GAR6UF6BcAR9fAbxwQEQ6IpsMzeKKihPn8GzJYqrzaWjgGhwpFPeshx2bDQNl ZP2VlDCzFto5mOIiOfXfkNdleTSo9bQwKlR2uvk+l+FtduPTT5ar84NgRy/24t5Nuowk jKwFFNbSm3tgU/efq28aZX6UDuv3jAbt1NZia8pVmUdbVidS3utBAHKScgXRVLXqqUDs Wruw== X-Forwarded-Encrypted: i=1; AJvYcCV34oVtlNdEjFn4XfaHM/bEr2pTv09XhSoc4iBaqf6EHi2ZByOQ6g+HcEtYQdx572FzRhq7qn00Rn2YoWRGsWDh1+HjDZcq+vF09K2K2L8Twl1b X-Gm-Message-State: AOJu0YyxcHyxopwxMtNjtN/e5OexnEVeeJw58BV3uH2mAvnMck+PAqb7 wY7N7xAlvBxGsUTNQhcRLL81OuLfAjxhnItrbYDxxfMmM8HJDzEDM+JZz3+zVw== X-Google-Smtp-Source: AGHT+IE89phL792BWopqeDAoxhwSc+cYngx/hKFsTM0bo7/ITHVvxcxhYGUezQCeTaE6oBfLWU6Ryw== X-Received: by 2002:a81:fe08:0:b0:64a:4728:ef1 with SMTP id 00721157ae682-64c72f39883mr31011617b3.39.1719774044487; Sun, 30 Jun 2024 12:00:44 -0700 (PDT) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 00721157ae682-64a9ba5a8d6sm10976117b3.98.2024.06.30.12.00.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jun 2024 12:00:43 -0700 (PDT) Date: Sun, 30 Jun 2024 12:00:40 -0700 From: Noah Misch To: Alvaro Herrera Cc: Jelte Fennema-Nio , Denis Laxalde , vignesh C , Thomas Munro , Greg Stark , Tom Lane , "Gregory Stark (as CFM)" , Jelte Fennema , Daniel Gustafsson , Peter Eisentraut , Andres Freund , Justin Pryzby , Robert Haas , "pgsql-hackers@lists.postgresql.org" Subject: Re: [EXTERNAL] Re: Add non-blocking version of PQcancel Message-ID: <20240630190040.26.nmisch@google.com> References: <202403121650.mpyd5m4y4udb@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202403121650.mpyd5m4y4udb@alvherre.pgsql> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 12, 2024 at 05:50:48PM +0100, Alvaro Herrera wrote: > On 2024-Mar-12, Jelte Fennema-Nio wrote: > > On Tue, 12 Mar 2024 at 10:19, Alvaro Herrera wrote: > > > Here's a last one for the cfbot. > > > > Thanks for committing the first 3 patches btw. > > Thanks, I included it. PGcancelConn * PQcancelCreate(PGconn *conn) { ... oom_error: conn->status = CONNECTION_BAD; libpq_append_conn_error(cancelConn, "out of memory"); return (PGcancelConn *) cancelConn; } Shouldn't that be s/conn->status/cancelConn->status/?