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

postgres-lambda-diff

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Tom Lane authored
    Since the distances used in this algorithm are small integers (not more
    than the size of the U set, in fact), there is no good reason to use float
    arithmetic for them.  Use short ints instead: they're smaller, faster, and
    require no special portability assumptions.
    
    Per testing by Greg Stark, which disclosed that the code got into an
    infinite loop on VAX for lack of IEEE-style float infinities.  We don't
    really care all that much whether Postgres can run on a VAX anymore,
    but there seems sufficient reason to change this code anyway.
    
    In passing, make a few other small adjustments to make the code match
    usual Postgres coding style a bit better.
    44ed65a5
    History
    Name Last commit Last update