Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

parse_cte.c

  • Tom Lane's avatar
    3786b9b4
    Fix WITH attached to a nested set operation (UNION/INTERSECT/EXCEPT). · 3786b9b4
    Tom Lane authored
    Parse analysis neglected to cover the case of a WITH clause attached to an
    intermediate-level set operation; it only handled WITH at the top level
    or WITH attached to a leaf-level SELECT.  Per report from Adam Mackler.
    
    In HEAD, I rearranged the order of SelectStmt's fields to put withClause
    with the other fields that can appear on non-leaf SelectStmts.  In back
    branches, leave it alone to avoid a possible ABI break for third-party
    code.
    
    Back-patch to 8.4 where WITH support was added.
    3786b9b4
    History
    Fix WITH attached to a nested set operation (UNION/INTERSECT/EXCEPT).
    Tom Lane authored
    Parse analysis neglected to cover the case of a WITH clause attached to an
    intermediate-level set operation; it only handled WITH at the top level
    or WITH attached to a leaf-level SELECT.  Per report from Adam Mackler.
    
    In HEAD, I rearranged the order of SelectStmt's fields to put withClause
    with the other fields that can appear on non-leaf SelectStmts.  In back
    branches, leave it alone to avoid a possible ABI break for third-party
    code.
    
    Back-patch to 8.4 where WITH support was added.