Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 in
Tom Lane <tgl@sss.pgh.pa.us>
Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 in attstattarget to indicate 'use the default'. The default is now a GUC variable default_statistics_target, and so may be changed on the fly. Along the way we gain the ability to have pg_dump dump the per-column statistics target when it's not the default. Patch by Neil Conway, with some kibitzing from Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +4 −3 |
| doc/src/sgml/ref/alter_table.sgml | modified | +3 −1 |
| doc/src/sgml/ref/analyze.sgml | modified | +6 −4 |
| doc/src/sgml/runtime.sgml | modified | +14 −1 |
| src/backend/access/common/tupdesc.c | modified | +2 −2 |
| src/backend/catalog/genbki.sh | modified | +2 −4 |
| src/backend/catalog/heap.c | modified | +2 −2 |
| src/backend/commands/analyze.c | modified | +13 −4 |
| src/backend/commands/tablecmds.c | modified | +11 −5 |
| src/backend/parser/gram.y | modified | +4 −4 |
| src/backend/utils/misc/guc.c | modified | +6 −1 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +1 −0 |
| src/bin/pg_dump/pg_dump.c | modified | +31 −4 |
| src/bin/pg_dump/pg_dump.h | modified | +2 −1 |
| src/bin/psql/tab-complete.c | modified | +2 −1 |
| src/include/catalog/pg_attribute.h | modified | +17 −16 |
| src/include/commands/vacuum.h | modified | +4 −1 |
| src/include/pg_config.h.in | modified | +1 −6 |