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 1wkhQK-000pEX-0D for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jul 2026 12:12:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wkhQI-00HMra-0F for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jul 2026 12:12:10 +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 1wkhQH-00HMrR-2O for pgsql-hackers@lists.postgresql.org; Fri, 17 Jul 2026 12:12:09 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wkhQF-00000000lBS-1T6y for pgsql-hackers@postgresql.org; Fri, 17 Jul 2026 12:12:09 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-493b27c7451so10472055e9.0 for ; Fri, 17 Jul 2026 05:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1784290326; x=1784895126; darn=postgresql.org; h=message-id:date: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=wtTt78DSxiQmK96N33lMOtjqW06TnsgawAjIthT+04A=; b=O5ldWk/xnYgjF7L6SUW87TU8dmrycpjVrs48LNS8LFaGHiFdhOWlDMR3AbDCEtZsiv G9mLb3qBec13vZtPt3c46SGzTOtmIDi1KbhnXf286bBo05fCNpliy1aQTaAtanbj5UHV HLZbcWjmFsIb3p98u4O+OmJ4Zf/BwV2D5Ez3hrDhtcp3yc5xdKsz9hJI6kWO/YeSGVUW YgRziwFab+MDPMOkGzDkyOEXJQgVzkMDhrQV4fPkWDsfSxwch3M+T1CFPApIYCSk6K3S L/EHjTbtQD/52hcU3unFZDyMhE5W1M/UmA3PNWwYkdMrKqfFxz74wD8qobAoncnpl5oV Tddw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784290326; x=1784895126; h=message-id:date: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=wtTt78DSxiQmK96N33lMOtjqW06TnsgawAjIthT+04A=; b=rFJgnA+sc9nx4hlHler9tkNL3/iPl3bI5KNKqYb1udni9OD086cc02vgpm+RGlIP8e 49rMmCtsoWL/HbvmAoWmCxFPf6eRLuTUmUQNprBtYNvtK261bQOtXBFtezRVcbFDt96s HoyX2oSzpqB4M6FptYyrSmzBbycS9F7UUOG/unJVgDhA8L9yJIBQ5DinBMTH0nMmTsrZ p3RJom3iva+gmqyh+8+Q+dzZDb/jXMMZgJpx4papw/Z1oidd4OLaFuZUmvfHwpZIwcsi 7F3cejDOMJ1b5LEsitUtm55/io11qkpHkOgRLelNrmqYW9YahhdHUpBxFJ28VaBLlRSZ yHRw== X-Forwarded-Encrypted: i=1; AHgh+Rr4Yv0GSE8idZG9V5lG8hDvlCuwu6ZTEIFUoCoFrS7fCGFWpymaabv3lVooECrYW7+5ryFqVInspqm8m/nv@postgresql.org X-Gm-Message-State: AOJu0YwEodpUkjNPkEPrYXECc0o7tI1iRMT5UgHQMPankaWrLBlHfzVM 97G5yQjvxDjpla/2PFNKblnxTGUpeAkYtTtHmh3QGbU1M8oYlUP/xscswOPQ+cY2hqY= X-Gm-Gg: AfdE7ckwKshOJ9KdFQTxI1KcFepm9OpePUtU3PDcD+/mKp8llqiC419j0HpIb1ckO+W Hu5lKlbYPPTIU/1tGlsQXGLcJ4s7PvJ0Js6nA6x30brSBpg+9pE/oCcIbuHb8WVYGB+NHUHv64v y4/6j6P0fmiPqmyRU/u6GvNuqPOYShjdZPMRUc2ptSt4wWz9UPiYlnxeGWBkNYLGJErQdr106EW pMSTdeqYxfXPw4QVp/Zs+Y2B+dlD8cRdParZpEiTZHzl/ixkvKJbzlg6BARS/BBFMmJPIue0Igz NqLZawFwZLIbAT6uJgmHoNyEuwfa22/XEfyFM07VdZ7S+vRtAlJoSLgWyScqtOfKoLXD7jwZmcH thKz1NTgoO7lcNQkBijq9FBIpPiWgf8Li/u850LiT44vYrshKavG+gC5ei0WditAtUvBym2VXK7 F6ys5bWK2ShGZppIs= X-Received: by 2002:a05:600c:1d18:b0:495:3c6f:7c18 with SMTP id 5b1f17b1804b1-4954a320080mr25948095e9.3.1784290326068; Fri, 17 Jul 2026 05:12:06 -0700 (PDT) Received: from localhost (109-81-170-190.rct.o2.cz. [109.81.170.190]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954d384146sm9007755e9.14.2026.07.17.05.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 05:12:05 -0700 (PDT) From: Antonin Houska To: Denis Smirnov cc: Amit Langote , Junwang Zhao , cca5507 , Daniil Davydov <3danissimo@gmail.com>, PostgreSQL-development , Tomas Vondra Subject: Re: Batching in executor In-reply-to: <3D8D1BA5-B8A6-400A-B605-42EEE37890B4@gmail.com> References: <68f3771f-91f5-4cb7-b1de-74d9abbf0b96@vondra.me> <3D8D1BA5-B8A6-400A-B605-42EEE37890B4@gmail.com> Comments: In-reply-to Denis Smirnov message dated "Mon, 06 Jul 2026 16:27:52 +0700." 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: <30924.1784290324.1@localhost> Date: Fri, 17 Jul 2026 14:12:04 +0200 Message-ID: <30925.1784290324@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Denis Smirnov wrote: > I am not sure adding a new table AM callback for this is the right > direction, at least for this patch. > > My concern is that scan_getnextbatch still looks like a row-oriented > interface. For a Parquet-like AM, with columnar storage and block-level > filters such as bloom/fuse filters, the useful API would need to pass > down things like the required columns, pushed-down predicates, and maybe > a limit. Just asking the AM for the next batch of rows does not give the > storage layer enough information to avoid unnecessary work. Is there a reason not to include this information in the scan descriptor of particular AM? -- Antonin Houska Web: https://www.cybertec-postgresql.com