diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-10-12 20:41:16 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-10-13 00:26:49 +1300 |
commit | f0f13a3a08b2757997410f3a1c38bdc22973c525 (patch) | |
tree | 47a4364849b5bdafb0e0e7ba6f33fe471feda985 /src/backend/access/gist/gistbuildbuffers.c | |
parent | 3fb676504da9c019540c7384423c7e3d7d394110 (diff) | |
download | postgresql-f0f13a3a08b2757997410f3a1c38bdc22973c525.tar.gz |
Fix estimates for ModifyTable paths without RETURNING.
In the past, we always estimated that a ModifyTable node would emit the
same number of rows as its subpaths. Without a RETURNING clause, the
correct estimate is zero. Fix, in preparation for a proposed parallel
write patch that is sensitive to that number.
A remaining problem is that for RETURNING queries, the estimated width
is based on subpath output rather than the RETURNING tlist.
Reviewed-by: Greg Nancarrow <gregn4422@gmail.com>
Discussion: https://postgr.es/m/CAJcOf-cXnB5cnMKqWEp2E2z7Mvcd04iLVmV%3DqpFJrR3AcrTS3g%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions