Re: estimation problems for DISTINCT ON with FDW

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-02T20:19:43Z
Lists: pgsql-hackers

Attachments

Concretely, I now propose the attached, which seems entirely
safe to back-patch.

			regards, tom lane

Commits

  1. Clamp total-tuples estimates for foreign tables to ensure planner sanity.