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

sequence.c

  • Tom Lane's avatar
    9ddfe034
    Fix ALTER SEQUENCE so that it does not affect the value of currval() for · 9ddfe034
    Tom Lane authored
    the sequence.  Also, make setval() with is_called = false not affect the
    currval state, either.  Per report from Kris Jurka that an implicit
    ALTER SEQUENCE OWNED BY unexpectedly caused currval() to become valid.
    Since this isn't 100% backwards compatible, it will go into HEAD only;
    I'll put a more limited patch into 8.2.
    9ddfe034
    History
    Fix ALTER SEQUENCE so that it does not affect the value of currval() for
    Tom Lane authored
    the sequence.  Also, make setval() with is_called = false not affect the
    currval state, either.  Per report from Kris Jurka that an implicit
    ALTER SEQUENCE OWNED BY unexpectedly caused currval() to become valid.
    Since this isn't 100% backwards compatible, it will go into HEAD only;
    I'll put a more limited patch into 8.2.