postgresql/contrib/postgres_fdw
Etsuro Fujita 5e7fa189ee 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
2021-02-05 15:30:00 +09:00
..
expected postgres_fdw: Fix assertion in estimate_path_cost_size(). 2021-02-05 15:30:00 +09:00
sql postgres_fdw: Fix assertion in estimate_path_cost_size(). 2021-02-05 15:30:00 +09:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
Makefile postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
connection.c postgres_fdw: Add functions to discard cached connections. 2021-01-26 15:35:54 +09:00
deparse.c Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
option.c Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
postgres_fdw--1.0--1.1.sql postgres_fdw: Add functions to discard cached connections. 2021-01-26 15:35:54 +09:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c postgres_fdw: Fix assertion in estimate_path_cost_size(). 2021-02-05 15:30:00 +09:00
postgres_fdw.control postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
postgres_fdw.h Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
shippable.c Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00