aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSetOp.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-06-05 15:01:14 +0900
committerMichael Paquier <michael@paquier.xyz>2019-06-05 15:01:14 +0900
commitf7e954ad1cf99a65b1785d999058898a6d56e014 (patch)
tree6496c6628b2f7531c20a32f07a7d9dce16969583 /src/backend/executor/nodeSetOp.c
parent5efd604ec0a3bdde98fe19d8cada69ab4ef80db3 (diff)
downloadpostgresql-f7e954ad1cf99a65b1785d999058898a6d56e014.tar.gz
postgresql-f7e954ad1cf99a65b1785d999058898a6d56e014.zip
Rework code using list_delete_cell() in MergeAttributes
When merging two attributes, we are sure that at least one remains. However, when deleting one element in the attribute list we may finish with an empty list returned as NIL by list_delete_cell(), but the code failed to track that, which is not project-like. Adjust the call so as we check for an empty list, and make use of it in an assertion. This has been introduced by e7b3349, when adding support for CREATE TABLE OF. Author: Mark Dilger Reviewed-by: Álvaro Herrera, Michael Paquier Discussion: https://postgr.es/m/CAE-h2TpPDqSWgOvfvSziOaMngMPwW+QZcmPpY8hQ_KOJ2+3hXQ@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeSetOp.c')
0 files changed, 0 insertions, 0 deletions