Remove no-op GiST support functions in the core GiST opclasses.
Tom Lane <tgl@sss.pgh.pa.us>
Remove no-op GiST support functions in the core GiST opclasses. The preceding patch allowed us to remove useless GiST support functions. This patch actually does that for all the no-op cases in the core GiST code. This buys us whatever performance gain is to be had, and more importantly exercises the preceding patch. There remain no-op functions in the contrib GiST opclasses, but those will take more work to remove. Discussion: https://postgr.es/m/CAJEAwVELVx9gYscpE=Be6iJxvdW5unZ_LkcAaVNSeOwvdwtD=A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gistproc.c | modified | +2 −30 |
| src/backend/utils/adt/network_gist.c | modified | +2 −10 |
| src/backend/utils/adt/rangetypes_gist.c | modified | +5 −24 |
| src/backend/utils/adt/tsgistidx.c | modified | +4 −0 |
| src/backend/utils/adt/tsquery_gist.c | modified | +4 −5 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_amproc.h | modified | +0 −11 |
| src/include/catalog/pg_proc.h | modified | +0 −16 |
| src/test/regress/expected/create_am.out | modified | +2 −4 |
| src/test/regress/sql/create_am.sql | modified | +2 −4 |
Discussion
- Allow GiST opcalsses without compress\decompres functions 23 messages · 2017-05-25 → 2017-10-23