aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/gist_private.h
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2023-10-10 16:50:03 +1300
committerDavid Rowley <drowley@postgresql.org>2023-10-10 16:50:03 +1300
commitfc4089f3c65a5f1b413a3299ba02b66a8e5e37d0 (patch)
tree17b74aeb967a5a0296a8cd642e3ce88c44b2a50b /src/include/access/gist_private.h
parent4f3b56eea23554e1756a26080db273156f23f4f2 (diff)
downloadpostgresql-fc4089f3c65a5f1b413a3299ba02b66a8e5e37d0.tar.gz
postgresql-fc4089f3c65a5f1b413a3299ba02b66a8e5e37d0.zip
Fix possible crash in add_paths_to_append_rel()
While working on a8a968a82, I failed to consider that cheapest_startup_path can be NULL when there is no non-parameterized path in the pathlist. This is well documented in set_cheapest(), I just failed to notice. Here we adjust the code to just check if the RelOptInfo has a cheapest_startup_path set before adding it to the startup_subpaths list. Reported-by: Richard Guo Author: Richard Guo Discussion: https://postgr.es/m/CAMbWs49w3t03V69XhdCuw+GDwivny4uQUxrkVp6Gejaspt0wMQ@mail.gmail.com
Diffstat (limited to 'src/include/access/gist_private.h')
0 files changed, 0 insertions, 0 deletions