pgsql: Change cardinality() into a C-code function, instead of a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change cardinality() into a C-code function, instead of a
Date: 2009-04-05 22:28:59
Message-ID: 20090405222859.F28C3754ADE@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
arrayfuncs.c (r1.153 -> r1.154)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/arrayfuncs.c?r1=1.153&r2=1.154)
pgsql/src/include/catalog:
catversion.h (r1.527 -> r1.528)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/catversion.h?r1=1.527&r2=1.528)
pg_proc.h (r1.539 -> r1.540)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/pg_proc.h?r1=1.539&r2=1.540)
pgsql/src/include/utils:
array.h (r1.74 -> r1.75)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/array.h?r1=1.74&r2=1.75)

Browse pgsql-committers by date

  From Date Subject
Next Message User Itagaki 2009-04-06 04:33:26 textsearch-ja - textsearch-ja: Remove trailing dashes for 4 charactor
Previous Message User Gsmet 2009-04-05 20:55:07 pgfouine - pgfouine: applied a patch from Steve Woodcock to fix a long