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 1uW8TF-008joP-B9 for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jun 2025 06:58:29 +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 1uW8TD-00EfoI-4A for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jun 2025 06:58:27 +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 1uW8TC-00EfoA-Py for pgsql-hackers@lists.postgresql.org; Mon, 30 Jun 2025 06:58:27 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uW8TA-004rGz-2d for pgsql-hackers@postgresql.org; Mon, 30 Jun 2025 06:58:26 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-450cfb790f7so33288575e9.0 for ; Sun, 29 Jun 2025 23:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1751266702; x=1751871502; darn=postgresql.org; h=message-id:date:mime-version:comments:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=71AmmZP20CWu9TdZ2mVPOqIZXvl7WR7XTEOE4xuSEpM=; b=RCqb0SNf98f5alFUQ3nX2YHRWi4RSwEsSUXVZketxUA/I+lT6h+tyd2DKLhfI0ztb0 dz7uRXDdfDzIUmyPUKWxhwt/V3dzLXcoGj6rxxB93kPKf2klMjZwQg/xPcUxJSoaYEIE PYh5Y4kx9eE5mkwPegE/0oSnM4AcHsh31sJw1sZ5OjVtFyAoZ55Eo3LAsAUpb2YkX3V8 cw1oZpFTIxUiElfxvuozT/9MAfSJlv7JCCdp5QAtKSEjYvPFJAe9ThzJZFtpZt+sxcA9 nXpD+mtI16hXf6x9V8EwwlqD/4XIdMOQTDNZGEeJ2nN1LJ0J0vwqMJ4Vf0hey8Dum3KE QkEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751266702; x=1751871502; h=message-id:date:mime-version:comments:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=71AmmZP20CWu9TdZ2mVPOqIZXvl7WR7XTEOE4xuSEpM=; b=DrK+gNKAXx5lC939zGu9l8UnFqZwPln8Vwbe4+8rnLtXuynAnTdw7YFNFC8CvSRwl1 IBoHs/R9xJ91bZ9xX1aHQzJNUlOcml4L92fUF5FtSPaHdoOtWawabvFoz9qdQzPd/hcS Tf1W3SM/9nA9Mmeekv2gymgiZGcGtD9sWI90YxXp4fd8gl9HrlCsWHQnNVsZYs1Cyu6O +pM5VK4FV8ot4rrmeW0GyopX7geitfMwwEBejOJ1EpupHLQkqkQFNtEOtjm3Yx11/xkd KvERIkRy2WOl31Z6r0s4SocN0EjKxmiGiSOjZ376NawjraKg4Krm5qp2DSc9z8VdZ5tu 5XxQ== X-Forwarded-Encrypted: i=1; AJvYcCVAQFs9cjrWfRrE69WlAyzusq0aOivvpnKPqLTRX4ol9QPRKp8piRsvvsTbBi6qO13kAmz2mQC48e8qgOeD@postgresql.org X-Gm-Message-State: AOJu0YxUF/kfblCENDc8m+k8DJjiaVyk3HCZgNcMdD8cZV0w29yH12vo tYJNa+lsferR9vh2qwuOSbDdPX4+4mpAs6uLN1e53rAs+W5ttNx5hiCjKx+RECx615g= X-Gm-Gg: ASbGncvhDlDm1Y0cuJmKgrAnOE3SXOlKkR6JBemnMnDo3ghjqf5KqeGJrWyu75XTLTn K7D535aYVfK2GCW0TyhLLTzLhM3FiIrr0+bnqI7mBTWeJl8fAQrGv+7Cfef7mtBRWj4S11rlW5P Tp2GNW/A7gViHuY1q+D2YNpbgXIZ1/hBFfXacqp77yx4rURwxbKztU4viTA778dTUo/x2BWuTnl 1OtNsm5zO+jUyPNVjCTrJBLGfZLbF987e5HIjLI4XLfnvMtEtRRRO8MR1ORqVzK/vWuR6J/ALAf tXKi0Rvnn3LcDYPb5zwysrJzGdUgiD2LqPeTwkj8jNFpXV4bIekp33e/prTAAmnL4U2ouNam1f3 pOV6JRqvjtdg= X-Google-Smtp-Source: AGHT+IFqnuXedBgY9JNKbf76hemkUZ/0kmiSEHlW+bgZnEiixc3VxaRsnPNiSPX9/JMhAHT0HpTXRA== X-Received: by 2002:a05:600c:1c8b:b0:43c:fc04:6d35 with SMTP id 5b1f17b1804b1-453917ee4afmr109773115e9.4.1751266701978; Sun, 29 Jun 2025 23:58:21 -0700 (PDT) Received: from localhost (109-81-168-175.rct.o2.cz. [109.81.168.175]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-453823b6d50sm157244845e9.30.2025.06.29.23.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jun 2025 23:58:21 -0700 (PDT) From: Antonin Houska To: Andres Freund cc: Noah Misch , pgsql-hackers@postgresql.org, Thomas Munro , Heikki Linnakangas , Robert Haas , Jakub Wartak , Jelte Fennema-Nio Subject: Re: AIO v2.5 In-reply-to: <3yxd5r23zly5bytvgyktbxtxq2r3gbpi7xd4dugevh3h4w4q6c@lu6oatjjpltz> References: <20250311194108.c5.nmisch@google.com> <5dzyoduxlvfg55oqtjyjehez5uoq6hnwgzor4kkybkfdgkj7ag@rbi4gsmzaczk> <20250312035743.f5.nmisch@google.com> <4b3f32ug3cayekysqlgspz2qjmeb7lca3gvazayglxr2m3d4dv@il33accgsji7> <17906.1741863183@localhost> <3yxd5r23zly5bytvgyktbxtxq2r3gbpi7xd4dugevh3h4w4q6c@lu6oatjjpltz> Comments: In-reply-to Andres Freund message dated "Fri, 14 Mar 2025 15:43:15 -0400." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Mon, 30 Jun 2025 08:58:21 +0200 Message-ID: <5250.1751266701@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Andres Freund wrote: > On 2025-03-13 11:53:03 +0100, Antonin Houska wrote: > > Attached are a few proposals for minor comment fixes. > > Thanks, applied. After reading the code a bit more, I noticed that the 'cb_flags' argument of PgAioHandleCallbackStage is not really used, at least in the existing callbacks. Is there an intention to use it in the future (the patches for async write do not seem to indicate so), or is this only a leftover from previous versions of the patch? Besides that, I suggest a minor comment fix. -- Antonin Houska Web: https://www.cybertec-postgresql.com --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=comment.diff diff --git a/src/include/storage/aio_types.h b/src/include/storage/aio_types.h index 18183366077..afee85c787b 100644 --- a/src/include/storage/aio_types.h +++ b/src/include/storage/aio_types.h @@ -107,7 +107,7 @@ typedef struct PgAioResult /* of type PgAioResultStatus, see above */ uint32 status:PGAIO_RESULT_STATUS_BITS; - /* meaning defined by callback->error */ + /* meaning defined by callback->report */ uint32 error_data:PGAIO_RESULT_ERROR_BITS; int32 result; --=-=-=--