pgsql: postgres_fdw: Fix test for cached costs in estimate_path_cost_si

From: Etsuro Fujita <efujita(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: postgres_fdw: Fix test for cached costs in estimate_path_cost_si
Date: 2019-01-29 03:30:30
Message-ID: E1goK6Y-0007SG-MF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

postgres_fdw: Fix test for cached costs in estimate_path_cost_size().

estimate_path_cost_size() failed to re-use cached costs when the cached
startup/total cost was 0, so it calculated the costs redundantly.

This is an oversight in commit aa09cd242f; but apply the patch to HEAD
only because there are no reports of actual trouble from that.

Author: Etsuro Fujita
Discussion: https://postgr.es/m/5C4AF3F3.4060409%40lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/449d0a85507b07be3040df78a93e2966ed0908c8

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2019-01-29 09:45:29 pgsql: Improve wording about WAL files in tar mode of pg_basebackup
Previous Message Michael Paquier 2019-01-29 02:28:29 pgsql: Use catalog query to discover tables to process in vacuumdb