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.96) (envelope-from ) id 1wkhTz-000pGq-24 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jul 2026 12:15:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wkhTy-00HOsd-0y for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jul 2026 12:15:58 +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.96) (envelope-from ) id 1wkhTy-00HOsU-00 for pgsql-hackers@lists.postgresql.org; Fri, 17 Jul 2026 12:15:58 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wkhTv-00000000lDm-37qL for pgsql-hackers@postgresql.org; Fri, 17 Jul 2026 12:15:57 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-493ce08a75bso31818505e9.1 for ; Fri, 17 Jul 2026 05:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1784290554; x=1784895354; darn=postgresql.org; h=message-id:date:content-transfer-encoding:content-id:content-type :mime-version:comments:references:in-reply-to:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to:content-type; bh=ex5Pnm6LNX1ubSYje64C6Xw7sgcPCiSdpnNEvxgqtcw=; b=iYIxegiR5drWhPdV9LAhlhpqFsWCPlRX//2qkWIuGgVmIWU+wiIjnnvYXVPECX/FAa yAZqWxlkjjaxqBQYMpGi+nze3hKEwCo3XlHr+HcaNzH+6rIg0E12fnldX6c4ACJ2tjkK iItmDkHfBhdlPLIZl1eKYsSS6kniczTUr8EtcShsIoTlpKS6HgeRKM9l+GfWNFlmkaID ZsPBHVzIjgWB5pYctcp+d/MJgVEZDV4J1NrsPJtPbRPgCPpj5VbUr1XuiC6vRmZmHxwL Lz5LfJQytAXg4PqQCHElE6beiV4XAJtbLQD8jI8WL1g6iYljSC/7yK1ql82X8oDh8vD3 Kmww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784290554; x=1784895354; h=message-id:date:content-transfer-encoding:content-id:content-type :mime-version:comments:references:in-reply-to:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ex5Pnm6LNX1ubSYje64C6Xw7sgcPCiSdpnNEvxgqtcw=; b=gTmVfi1ep1AlnHN9dhiQPcOPVpmTq/lxe6YeyJXOFeJG/n+yJxSLk14Zq4XP+SnHbW ZmCluRppH1eVAu9TpVFeydykU5d9hQLCe/aTdSpk147vFHRY9eETxLraK1145XgfG3UC i1UWTu7FMO4+BEaj0zyucjx6HcT3A+HSEzp/die/qxYmifIgcGblY7u3ChlUGGgijQGh Lmrd7VoBJCodix7EIYD/jfOPY1Le5rLYYBT86zv2XqyDI3KROux4zUaFhz6E/wHaDGgi +3Z3VSTBVxr7aljcDnODYldqzMCbLBGf8LIM17yr6n8UeUJDAJqcFnYO9wV1HK6HeJOf tEnw== X-Forwarded-Encrypted: i=1; AHgh+RoR0i9c2oc3ELyVFGpoJwZkQusTtY1PmaX1REj91WcU1q4od0+xK4KSvD7IhtsCN3qstVPayWPQoHms0Hua@postgresql.org X-Gm-Message-State: AOJu0YyGDWaFQXCKQk8WzDBQSCubSKWRPOraHhXj4/5ceQV0ewKqQEH8 95TeE5Fe2iVee+7fp0EzcqEPAlIFH10XkZYw2dP509XhaOICp6jztU0mtVfWdWtDWYM= X-Gm-Gg: AfdE7cntiWWhKHLHC5Jtdx3EUuSLKRDWLRdiog9sATVqJeWSwzARb2h4x/qUNSiHXUg PyfqoXg9pkwbPNNXiAI5XLFgLybzU+pygKwS00bz470/frRtwbbP8GdSKv+1H0armghzJI1J71q uRZY94q2COuwMxA/lE8ikB26aK2WQDn6oxq0FgmBl3PyxBcsquaHEGCrAp83TovY71j2dZrManj tuCOeyX7EgVg+9omyWdQgWeGuLgqnEIrIA2zd2j28LJ4JYiSsyGquadqqZuwis+i6hG5yV3nuI1 1P1lWivX8yYB1/tytXtBn4bbhD6QvfAseX6Ihlt2o2BW8qGRhxUfLKviuELG+cD3mXzgisnFlSR Ub7uMA09C9VivcMT+MlNZXvdBbTeg8QxtNKaDNuNYBT3jW4PAi4x3Y5+X59Yg14na9FGZIuBwwl oVkEwSuLQSBq3eKtU= X-Received: by 2002:a05:600c:1c21:b0:493:bb0e:2832 with SMTP id 5b1f17b1804b1-4954a521bd4mr31802125e9.37.1784290553497; Fri, 17 Jul 2026 05:15:53 -0700 (PDT) Received: from localhost (109-81-170-190.rct.o2.cz. [109.81.170.190]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954a2e8529sm42417975e9.11.2026.07.17.05.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 05:15:52 -0700 (PDT) From: Antonin Houska To: Amit Langote Cc: Junwang Zhao , cca5507 , Daniil Davydov <3danissimo@gmail.com>, PostgreSQL-development , Tomas Vondra Subject: Re: Batching in executor In-reply-to: <29988.1784287357@localhost> References: <68f3771f-91f5-4cb7-b1de-74d9abbf0b96@vondra.me> <29988.1784287357@localhost> Comments: In-reply-to Antonin Houska message dated "Fri, 17 Jul 2026 13:22:37 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31018.1784290552.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Jul 2026 14:15:52 +0200 Message-ID: <31019.1784290552@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Antonin Houska wrote: > 0003: > = > * I'm not sure the batch-specific callbacks should be mandatory > = > diff --git a/src/backend/access/table/tableamapi.c b/src/backend/access/= table/tableamapi.c > index 5450a27faeb..9ef6b5cca65 100644 > --- a/src/backend/access/table/tableamapi.c > +++ b/src/backend/access/table/tableamapi.c > @@ -45,6 +45,8 @@ GetTableAmRoutine(Oid amhandler) > Assert(routine->scan_end !=3D NULL); > Assert(routine->scan_rescan !=3D NULL); > Assert(routine->scan_getnextslot !=3D NULL); > + Assert(routine->scan_getnextbatch !=3D NULL); > + Assert(routine->batch_slot_callbacks !=3D NULL); I mean the callback is mandatory in the current version, but ISTM that nodeSeqscan.c does not work here if the AM does not support batching. -- = Antonin Houska Web: https://www.cybertec-postgresql.com