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

functioncmds.c

  • Tom Lane's avatar
    70c9763d
    Convert oidvector and int2vector into variable-length arrays. This · 70c9763d
    Tom Lane authored
    change saves a great deal of space in pg_proc and its primary index,
    and it eliminates the former requirement that INDEX_MAX_KEYS and
    FUNC_MAX_ARGS have the same value.  INDEX_MAX_KEYS is still embedded
    in the on-disk representation (because it affects index tuple header
    size), but FUNC_MAX_ARGS is not.  I believe it would now be possible
    to increase FUNC_MAX_ARGS at little cost, but haven't experimented yet.
    There are still a lot of vestigial references to FUNC_MAX_ARGS, which
    I will clean up in a separate pass.  However, getting rid of it
    altogether would require changing the FunctionCallInfoData struct,
    and I'm not sure I want to buy into that.
    70c9763d
    History
    Convert oidvector and int2vector into variable-length arrays. This
    Tom Lane authored
    change saves a great deal of space in pg_proc and its primary index,
    and it eliminates the former requirement that INDEX_MAX_KEYS and
    FUNC_MAX_ARGS have the same value.  INDEX_MAX_KEYS is still embedded
    in the on-disk representation (because it affects index tuple header
    size), but FUNC_MAX_ARGS is not.  I believe it would now be possible
    to increase FUNC_MAX_ARGS at little cost, but haven't experimented yet.
    There are still a lot of vestigial references to FUNC_MAX_ARGS, which
    I will clean up in a separate pass.  However, getting rid of it
    altogether would require changing the FunctionCallInfoData struct,
    and I'm not sure I want to buy into that.