Instead of storing pg_statistic stavalues entries as text strings, store
Tom Lane <tgl@sss.pgh.pa.us>
Instead of storing pg_statistic stavalues entries as text strings, store them as arrays of the internal datatype. This requires treating the stavalues columns as 'anyarray' rather than 'text[]', which is not 100% kosher but seems to work fine for the purposes we need for pg_statistic. Perhaps in the future 'anyarray' will be allowed more generally.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +7 −5 |
| src/backend/catalog/heap.c | modified | +7 −3 |
| src/backend/commands/analyze.c | modified | +8 −28 |
| src/backend/utils/adt/selfuncs.c | modified | +1 −6 |
| src/backend/utils/cache/lsyscache.c | modified | +25 −33 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_statistic.h | modified | +14 −8 |
| src/test/regress/expected/rules.out | modified | +3 −3 |