aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorEtsuro Fujita <efujita@postgresql.org>2021-02-05 15:30:02 +0900
committerEtsuro Fujita <efujita@postgresql.org>2021-02-05 15:30:02 +0900
commit984384129bb8a92481d4f7ddd5dede2d781b191f (patch)
tree5af1f50e45cb01e1b347c82b0d339c52f27430ed /src/backend/executor/nodeModifyTable.c
parent6467661b6d80122582c9b84f9ae350e5e8073de2 (diff)
downloadpostgresql-984384129bb8a92481d4f7ddd5dede2d781b191f.tar.gz
postgresql-984384129bb8a92481d4f7ddd5dede2d781b191f.zip
postgres_fdw: Fix assertion in estimate_path_cost_size().
Commit 08d2d58a2 added an assertion assuming that the retrieved_rows estimate for a foreign relation, which is re-used to cost pre-sorted foreign paths with local stats, is set to at least one row in estimate_path_cost_size(), which isn't correct because if the relation is a foreign table with tuples=0, the estimate would be set to 0 there when not using remote estimates. Per bug #16807 from Alexander Lakhin. Back-patch to v13 where the aforementioned commit went in. Author: Etsuro Fujita Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/16807-9fe4e08fbaa5c7ce%40postgresql.org
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions