postgresql/src/include
Michael Paquier 307447e6db Add information about range type stats to pg_stats_ext_exprs
This commit adds three attributes to the system view pg_stats_ext_exprs,
whose data can exist when involving a range type in an expression:
range_length_histogram
range_empty_frac
range_bounds_histogram

These statistics fields exist since 918eee0c49, and have become
viewable in pg_stats later in bc3c8db8ae.  This puts the definition of
pg_stats_ext_exprs on par with pg_stats.

This issue has showed up during the discussion about the restore of
extended statistics for expressions, so as it becomes possible to query
the stats data to restore from the catalogs.  Having access to this data
is useful on its own, without the restore part.

Some documentation and some tests are added, written by me.  Corey has
authored the part in system_views.sql.

Bump catalog version.

Author: Corey Huinker <corey.huinker@gmail.com>
Co-authored-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/aYmCUx9VvrKiZQLL@paquier.xyz
2026-02-10 12:36:57 +09:00
..
access Remove HeapTupleheaderSetXminCommitted/Invalid functions 2026-02-09 19:15:20 +01:00
archive Update copyright for 2026 2026-01-01 13:24:10 -05:00
backup Update copyright for 2026 2026-01-01 13:24:10 -05:00
bootstrap Update copyright for 2026 2026-01-01 13:24:10 -05:00
catalog Add information about range type stats to pg_stats_ext_exprs 2026-02-10 12:36:57 +09:00
commands Harden _int_matchsel() against being attached to the wrong operator. 2026-02-09 10:14:22 -05:00
common Fix accidentally cast away qualifiers 2026-01-26 16:02:31 +01:00
datatype Update copyright for 2026 2026-01-01 13:24:10 -05:00
executor Adjust style of some debugging macros. 2026-02-06 16:24:21 -06:00
fe_utils Update copyright for 2026 2026-01-01 13:24:10 -05:00
foreign Update copyright for 2026 2026-01-01 13:24:10 -05:00
jit Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00
lib Future-proof sort template against undefined behavior 2026-02-07 17:02:35 +07:00
libpq libpq: Prepare for protocol grease during 19beta 2026-02-06 10:31:45 -08:00
mb Replace pg_mblen() with bounds-checked versions. 2026-02-09 12:44:04 +13:00
nodes Revert "Change copyObject() to use typeof_unqual" 2026-02-07 10:08:38 +01:00
optimizer Allow for plugin control over path generation strategies. 2026-01-28 11:28:34 -05:00
parser Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
partitioning Update copyright for 2026 2026-01-01 13:24:10 -05:00
pch Update copyright for 2026 2026-01-01 13:24:10 -05:00
port Refactor some SIMD and popcount macros. 2026-01-21 14:21:00 -06:00
portability Remove PG_MMAP_FLAGS from mem.h 2026-01-26 10:52:02 +09:00
postmaster Allow log_min_messages to be set per process type 2026-02-09 13:23:10 +01:00
regex Update copyright for 2026 2026-01-01 13:24:10 -05:00
replication pg_upgrade: Optimize logical replication slot caught-up check. 2026-02-04 17:11:27 -08:00
rewrite Update copyright for 2026 2026-01-01 13:24:10 -05:00
snowball Update to latest Snowball sources. 2026-01-05 15:22:37 -05:00
statistics Add support for "mcv" in pg_restore_extended_stats() 2026-01-29 12:14:08 +09:00
storage Add file_extend_method=posix_fallocate,write_zeros. 2026-02-06 17:38:49 +13:00
tcop Update copyright for 2026 2026-01-01 13:24:10 -05:00
tsearch Replace pg_mblen() with bounds-checked versions. 2026-02-09 12:44:04 +13:00
utils Guard against unexpected dimensions of oidvector/int2vector. 2026-02-09 09:57:43 -05:00
.gitignore Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
c.h Change StaticAssertVariableIsOfType to be a declaration 2026-02-03 08:46:02 +01:00
fmgr.h Add data type oid8, 64-bit unsigned identifier 2026-01-07 11:37:00 +09:00
funcapi.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
getopt_long.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
Makefile Fix build inconsistency due to the generation of wait-event code 2026-02-02 08:02:39 +09:00
meson.build Decouple C++ support in Meson's PGXS from LLVM enablement 2026-01-09 10:25:02 +01:00
miscadmin.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_config.h.in Revert "Change copyObject() to use typeof_unqual" 2026-02-07 10:08:38 +01:00
pg_config_manual.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_getopt.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_trace.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pgstat.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pgtar.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pgtime.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
port.h strnlen() is now required 2026-01-08 08:51:20 +01:00
postgres.h Rename AssertVariableIsOfType to StaticAssertVariableIsOfType 2026-02-03 08:45:24 +01:00
postgres_ext.h Move pg_int64 back to postgres_ext.h 2025-09-16 10:48:56 +02:00
postgres_fe.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
varatt.h Fix accidentally cast away qualifiers 2026-01-26 16:02:31 +01:00
windowapi.h Update copyright for 2026 2026-01-01 13:24:10 -05:00