]> granicus.if.org Git - postgresql/commit
Change cardinality() into a C-code function, instead of a SQL-language
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Apr 2009 22:28:59 +0000 (22:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Apr 2009 22:28:59 +0000 (22:28 +0000)
commitf2110a757d0bdca766fa1b8562c7dcb1a53fd422
tree5f3dbadfee7aa7ac8affae27881666add9e527b3
parenteb4c723e562c350f3af828ebe0e8847c79a02a69
Change cardinality() into a C-code function, instead of a SQL-language
alias for array_length(v,1).  The efficiency gain here is doubtless
negligible --- what I'm interested in is making sure that if we have
second thoughts about the definition, we will not have to force a
post-beta initdb to change the implementation.
src/backend/utils/adt/arrayfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/array.h