aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-09-09 18:35:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-09-09 18:35:41 -0400
commitf003419791f35eeab0150cd097bcf7929622b0fc (patch)
tree39409d14d8bd337c1dbb23cd9a7c46920fad923d /src/backend/utils/adt/numeric.c
parent21dcc48dc7ec48bf7b2a40c619e1c96ca4d2477c (diff)
downloadpostgresql-f003419791f35eeab0150cd097bcf7929622b0fc.tar.gz
postgresql-f003419791f35eeab0150cd097bcf7929622b0fc.zip
Preserve AND/OR flatness while extracting restriction OR clauses.
The code I added in commit f343a880d5555faf1dad0286c5632047c8f599ad was careless about preserving AND/OR flatness: it could create a structure with an OR node directly underneath another one. That breaks an assumption that's fairly important for planning efficiency, not to mention triggering various Asserts (as reported by Benjamin Smith). Add a trifle more logic to handle the case properly.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions