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

syscache.c

Blame
    • Tom Lane's avatar
      6ea8f495
      Fix SysCacheGetAttr() to handle the case where the specified syscache has not · 6ea8f495
      Tom Lane authored
      been initialized yet.  This can happen because there are code paths that call
      SysCacheGetAttr() on a tuple originally fetched from a different syscache
      (hopefully on the same catalog) than the one specified in the call.  It
      doesn't seem useful or robust to try to prevent that from happening, so just
      improve the function to cope instead.  Per bug#2678 from Jeff Trout.  The
      specific example shown by Jeff is new in 8.1, but to be on the safe side
      I'm backpatching 8.0 as well.  We could patch 7.x similarly but I think
      that's probably overkill, given the lack of evidence of old bugs of this ilk.
      6ea8f495
      History
      Fix SysCacheGetAttr() to handle the case where the specified syscache has not
      Tom Lane authored
      been initialized yet.  This can happen because there are code paths that call
      SysCacheGetAttr() on a tuple originally fetched from a different syscache
      (hopefully on the same catalog) than the one specified in the call.  It
      doesn't seem useful or robust to try to prevent that from happening, so just
      improve the function to cope instead.  Per bug#2678 from Jeff Trout.  The
      specific example shown by Jeff is new in 8.1, but to be on the safe side
      I'm backpatching 8.0 as well.  We could patch 7.x similarly but I think
      that's probably overkill, given the lack of evidence of old bugs of this ilk.