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

nodeHash.c

Blame
    • Marc G. Fournier's avatar
      f796387b
      |From: Dan McGuirk <mcguirk@indirect.com> · f796387b
      Marc G. Fournier authored
      |
      |This patch fixes a backend crash that happens sometimes when you try to
      |join on a field that contains NULL in some rows.  Postgres tries to
      |compute a hash value of the field you're joining on, but when the field
      |is NULL, the pointer it thinks is pointing to the data is really just
      |pointing to random memory.  This forces the hash value of NULL to be 0.
      |
      |It seems that nothing matches NULL on joins, even other NULL's (with or
      |without this patch).  Is that what's supposed to happen?
      |
      f796387b
      History
      |From: Dan McGuirk <mcguirk@indirect.com>
      Marc G. Fournier authored
      |
      |This patch fixes a backend crash that happens sometimes when you try to
      |join on a field that contains NULL in some rows.  Postgres tries to
      |compute a hash value of the field you're joining on, but when the field
      |is NULL, the pointer it thinks is pointing to the data is really just
      |pointing to random memory.  This forces the hash value of NULL to be 0.
      |
      |It seems that nothing matches NULL on joins, even other NULL's (with or
      |without this patch).  Is that what's supposed to happen?
      |