diff options
| author | Tom Lane | 2023-09-15 21:01:26 +0000 |
|---|---|---|
| committer | Tom Lane | 2023-09-15 21:01:26 +0000 |
| commit | ae13f8166dc372a94e596f423790a67abd7bf68c (patch) | |
| tree | bcdf1320b90b76aedaa0237b9e11049ab7faa001 /src/backend/main | |
| parent | 1988f8766eeb297d7867e92bcfdea2e4ff894cc7 (diff) | |
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/main')
0 files changed, 0 insertions, 0 deletions
