]> granicus.if.org Git - postgresql/commit
Replace ALTER TABLE ... SET STATISTICS DISTINCT with a more general mechanism.
authorRobert Haas <rhaas@postgresql.org>
Fri, 22 Jan 2010 16:40:19 +0000 (16:40 +0000)
committerRobert Haas <rhaas@postgresql.org>
Fri, 22 Jan 2010 16:40:19 +0000 (16:40 +0000)
commit76a47c0e7423891d4b4f0977312f46fec6c5c416
tree8c9ad15f5c0bf5b2c129ec78fece1780eb430c0d
parent9ca0989037602d9835eec04c2a9b6016a7b55740
Replace ALTER TABLE ... SET STATISTICS DISTINCT with a more general mechanism.

Attributes can now have options, just as relations and tablespaces do, and
the reloptions code is used to parse, validate, and store them.  For
simplicity and because these options are not performance critical, we store
them in a separate cache rather than the main relcache.

Thanks to Alex Hunsaker for the review.
19 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/analyze.sgml
src/backend/access/common/reloptions.c
src/backend/access/common/tupdesc.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/genbki.pl
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/commands/analyze.c
src/backend/commands/tablecmds.c
src/backend/parser/gram.y
src/backend/utils/cache/Makefile
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/psql/tab-complete.c
src/include/access/reloptions.h
src/include/catalog/pg_attribute.h
src/include/nodes/parsenodes.h