Thread: pgsql: Disallow modifying statistics on system columns.

pgsql: Disallow modifying statistics on system columns.

From
Jeff Davis
Date:
Disallow modifying statistics on system columns.

Reported-by: Heikki Linnakangas
Discussion: https://postgr.es/m/df3e1c41-4e6c-40ad-9636-98deefe488cd@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/869ee4f10eca2acda3d2210198a46d5029a569fc

Modified Files
--------------
src/backend/statistics/attribute_stats.c   | 14 ++++++++++++++
src/test/regress/expected/stats_import.out | 15 +++++++++++++++
src/test/regress/sql/stats_import.sql      | 15 +++++++++++++++
3 files changed, 44 insertions(+)