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

spi.c

  • Tom Lane's avatar
    708f82f1
    Fix bug noted by Bruce: FETCH in an already-aborted transaction block · 708f82f1
    Tom Lane authored
    would crash, due to premature invocation of SetQuerySnapshot().  Clean
    up problems with handling of multiple queries by splitting
    pg_parse_and_plan into two routines.  The old code would not, for
    example, do the right thing with END; SELECT... submitted in one query
    string when it had been in transaction abort state, because it'd decide
    to skip planning the SELECT before it had executed the END.  New
    arrangement is simpler and doesn't force caller to plan if only
    parse+rewrite is needed.
    708f82f1
    History
    Fix bug noted by Bruce: FETCH in an already-aborted transaction block
    Tom Lane authored
    would crash, due to premature invocation of SetQuerySnapshot().  Clean
    up problems with handling of multiple queries by splitting
    pg_parse_and_plan into two routines.  The old code would not, for
    example, do the right thing with END; SELECT... submitted in one query
    string when it had been in transaction abort state, because it'd decide
    to skip planning the SELECT before it had executed the END.  New
    arrangement is simpler and doesn't force caller to plan if only
    parse+rewrite is needed.