pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Explain that ANALYZE ignores reject_limit in file_fdw
Date: Wed, 11 Nov 2026 01:07:46 +0000
Message-ID: <E1xQwoU-00000000FHA-1TQh@gemulon.postgresql.org> (raw)

doc: Explain that ANALYZE ignores reject_limit in file_fdw

The documentation did not explain that ANALYZE on file_fdw foreign tables
ignores reject_limit, which could lead users to expect it to fail when
the number of skipped rows exceeded the limit.

Ignoring the limit allows statistics to be collected from valid rows
even when the limit is exceeded. These statistics can still be useful for
queries using LIMIT, for example, which may finish before encountering
enough conversion errors to exceed reject_limit.

Document this exception and its rationale.

Backpatch to v18, where reject_limit support was added to file_fdw.

Author: Ayoub Kazar <ayoub.kazar@data-bene.io>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/6cc479df-7571-4393-a572-f46dba1bfcbf@data-bene.io
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b355d4277e76d6ae691855070e20da703789cea

Modified Files
--------------
contrib/file_fdw/file_fdw.c | 6 +++++-
doc/src/sgml/file-fdw.sgml  | 5 ++++-
2 files changed, 9 insertions(+), 2 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1xQwoU-00000000FHA-1TQh@gemulon.postgresql.org>
Permalink:  ../E1xQwoU-00000000FHA-1TQh@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQwoU-00000000FHA-1TQh@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: doc: Explain that ANALYZE ignores reject_limit in file_fdw
  In-Reply-To: <E1xQwoU-00000000FHA-1TQh@gemulon.postgresql.org>
  References: <E1xQwoU-00000000FHA-1TQh@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox