aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-10-29 12:45:33 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-10-29 12:45:33 -0400
commita2a731d6c9db0ba650aa6f7c4fe349ccf712f74d (patch)
treecf75177961f20fe623e555faffaa858cf8fe6284 /src/backend/access/gist/gistget.c
parent937aafd6d5580b81134c7f303d04cf7561ad0309 (diff)
downloadpostgresql-a2a731d6c9db0ba650aa6f7c4fe349ccf712f74d.tar.gz
postgresql-a2a731d6c9db0ba650aa6f7c4fe349ccf712f74d.zip
Test and document the behavior of initialization cross-refs in plpgsql.
We had a test showing that a variable isn't referenceable in its own initialization expression, nor in prior ones in the same block. It *is* referenceable in later expressions in the same block, but AFAICS there is no test case exercising that. Add one, and also add some error cases. Also, document that this is possible, since the docs failed to cover the point. Per question from tomás at tuxteam. I don't feel any need to back-patch this, but we should ensure we don't break it in future. Discussion: https://postgr.es/m/20211029121435.GA5414@tuxteam.de
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions