aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-05-05 22:18:56 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-05-05 22:18:56 +0000
commit93dc6a1b394f8b0ea6719a40a61a81c262ea2103 (patch)
tree0ba6bd0760714bd2c78f46a88c877281df8909c9 /src/backend/parser/parse_expr.c
parent1ba23f767bad48c77a90ead05db62d83d24d9763 (diff)
downloadpostgresql-93dc6a1b394f8b0ea6719a40a61a81c262ea2103.tar.gz
postgresql-93dc6a1b394f8b0ea6719a40a61a81c262ea2103.zip
Fix psql to not go into infinite recursion when expanding a variable that
refers to itself (directly or indirectly). Instead, print a message when recursion is detected, and don't expand the repeated reference. Per bug #5448 from Francis Markham. Back-patch to 8.0. Although the issue exists in 7.4 as well, it seems impractical to fix there because of the lack of any state stack that could be used to track active expansions.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions