Cleanup of code for creating index entries. Functional indexes with

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6bfe64032efd043f80a495a495331dcfc2d9f05c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-07-14T22:18:02Z
Releases: 7.1.1
Cleanup of code for creating index entries.  Functional indexes with
pass-by-ref data types --- eg, an index on lower(textfield) --- no longer
leak memory during index creation or update.  Clean up a lot of redundant
code ... did you know that copy, vacuum, truncate, reindex, extend index,
and bootstrap each basically duplicated the main executor's logic for
extracting information about an index and preparing index entries?
Functional indexes should be a little faster now too, due to removal
of repeated function lookups.
CREATE INDEX 'opt_type' clause is deimplemented by these changes,
but I haven't removed it from the parser yet (need to merge with
Thomas' latest change set first).

Files

PathChange+/−
src/backend/access/gist/gist.c modified +64 −90
src/backend/access/hash/hash.c modified +28 −62
src/backend/access/index/indexam.c modified +1 −54
src/backend/access/index/istrat.c modified +9 −6
src/backend/access/nbtree/nbtree.c modified +37 −68
src/backend/access/rtree/rtree.c modified +48 −81
src/backend/bootstrap/bootparse.y modified +1 −2
src/backend/bootstrap/bootscanner.l modified +1 −2
src/backend/bootstrap/bootstrap.c modified +14 −53
src/backend/catalog/heap.c modified +14 −68
src/backend/catalog/index.c modified +289 −377
src/backend/catalog/indexing.c modified +32 −48
src/backend/commands/cluster.c modified +12 −54
src/backend/commands/command.c modified +15 −6
src/backend/commands/copy.c modified +49 −192
src/backend/commands/indexcmds.c modified +114 −198
src/backend/commands/vacuum.c modified +52 −58
src/backend/executor/execUtils.c modified +36 −173
src/backend/storage/large_object/inv_api.c modified +16 −16
src/backend/utils/cache/relcache.c modified +2 −1
src/include/access/funcindex.h deleted +0 −43
src/include/access/genam.h modified +1 −5
src/include/access/gist.h modified +0 −1
src/include/access/hash.h modified +1 −2
src/include/access/istrat.h modified +8 −5
src/include/access/itup.h modified +1 −13
src/include/bootstrap/bootstrap.h modified +7 −7
src/include/catalog/index.h modified +17 −22
src/include/catalog/pg_proc.h modified +5 −5
src/include/commands/vacuum.h modified +3 −12
src/include/nodes/execnodes.h modified +21 −11
src/include/utils/rel.h modified +2 −1