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

contrib

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Tom Lane authored
    can tell whether it is being used as an aggregate or not.  This allows
    such a function to avoid re-pallocing a pass-by-reference transition
    value; normally it would be unsafe for a function to scribble on an input,
    but in the aggregate case it's safe to reuse the old transition value.
    Make int8inc() do this.  This gets a useful improvement in the speed of
    COUNT(*), at least on narrow tables (it seems to be swamped by I/O when
    the table rows are wide).  Per a discussion in early December with
    Neil Conway.  I also fixed int_aggregate.c to check this, thereby
    turning it into something approaching a supportable technique instead
    of being a crude hack.
    fa5e4401
    History
    Name Last commit Last update
    ..