aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/commit_ts
diff options
context:
space:
mode:
authorEtsuro Fujita <efujita@postgresql.org>2025-07-06 17:15:00 +0900
committerEtsuro Fujita <efujita@postgresql.org>2025-07-06 17:15:00 +0900
commit21c9756db6458f859e6579a6754c78154321cb39 (patch)
tree7557ae8a1658067b292d20f68dd1837593d2d693 /src/test/modules/commit_ts
parent144ad723a4484927266a316d1c9550d56745ff67 (diff)
downloadpostgresql-21c9756db6458f859e6579a6754c78154321cb39.tar.gz
postgresql-21c9756db6458f859e6579a6754c78154321cb39.zip
postgres_fdw: Add Assert to estimate_path_cost_size().
When estimating the cost/size of a pre-sorted path for a given upper relation using local stats, this function dereferences the passed-in PgFdwPathExtraData pointer without checking that it is not NULL. But that is not a bug as the pointer is guaranteed to be non-NULL in that case; to avoid confusion, add an Assert to ensure that it is not NULL before dereferencing it. Reported-by: Ranier Vilela <ranier.vf@gmail.com> Author: Etsuro Fujita <etsuro.fujita@gmail.com> Reviewed-by: Ranier Vilela <ranier.vf@gmail.com> Discussion: https://postgr.es/m/CAEudQArgiALbV1akQpeZOgim7XP05n%3DbDP1%3DTcOYLA43nRX_vA%40mail.gmail.com
Diffstat (limited to 'src/test/modules/commit_ts')
0 files changed, 0 insertions, 0 deletions