OSDN Git Service

Add the full set of comparison functions for type TID, including a btree
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Jul 2006 20:51:33 +0000 (20:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Jul 2006 20:51:33 +0000 (20:51 +0000)
commit0144eb92bbffe25945e57b1c153ddaae93b9f196
treeb714ca632e41515ae2414b0ade19458d472dcc7c
parentbc660c423731a3b68fb9c1e61a3ab8812dc8d55d
Add the full set of comparison functions for type TID, including a btree
opclass.  This is not so much because anyone's likely to create an index
on TID, as that sorting TIDs can be useful.  Also added max and min
aggregates while at it, so that one can investigate the clusteredness of
a table with queries like SELECT min(ctid), max(ctid) FROM tab WHERE ...
Greg Stark and Tom Lane
src/backend/utils/adt/tid.c
src/include/catalog/catversion.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h