diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-09-15 17:01:26 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-09-15 17:01:26 -0400 |
commit | 2679a107a152de3f88602a41f8651ec82e4d6205 (patch) | |
tree | 787f99f852a7459d80afda9c912c597ab1fac195 /src/backend/access/gist/gistvacuum.c | |
parent | fe60434af76ffa5fe57711378b7af06ee2e918d3 (diff) | |
download | postgresql-2679a107a152de3f88602a41f8651ec82e4d6205.tar.gz postgresql-2679a107a152de3f88602a41f8651ec82e4d6205.zip |
Track nesting depth correctly when drilling down into RECORD Vars.
expandRecordVariable() failed to adjust the parse nesting structure
correctly when recursing to inspect an outer-level Var. This could
result in assertion failures or core dumps in corner cases.
Likewise, get_name_for_var_field() failed to adjust the deparse
namespace stack correctly when recursing to inspect an outer-level
Var. In this case the likely result was a "bogus varno" error
while deparsing a view.
Per bug #18077 from Jingzhou Fu. Back-patch to all supported
branches.
Richard Guo, with some adjustments by me
Discussion: https://postgr.es/m/18077-b9db97c6e0ab45d8@postgresql.org
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions