1) Added new columns in pg_stats table.

2) Updated release note.
This commit is contained in:
Akshay Joshi
2025-07-10 19:11:33 +05:30
parent 1e4e00886a
commit 82e6b57d04
3 changed files with 27 additions and 1 deletions
@@ -0,0 +1,20 @@
SELECT
null_frac AS {{ conn|qtIdent(_('Null fraction')) }},
avg_width AS {{ conn|qtIdent(_('Average width')) }},
n_distinct AS {{ conn|qtIdent(_('Distinct values')) }},
most_common_vals AS {{ conn|qtIdent(_('Most common values')) }},
most_common_freqs AS {{ conn|qtIdent(_('Most common frequencies')) }},
histogram_bounds AS {{ conn|qtIdent(_('Histogram bounds')) }},
correlation AS {{ conn|qtIdent(_('Correlation')) }},
most_common_elems AS {{ conn|qtIdent(_('Most common elements')) }},
most_common_elem_freqs AS {{ conn|qtIdent(_('Most common elements frequencies')) }},
elem_count_histogram AS {{ conn|qtIdent(_('Histogram element count')) }},
range_length_histogram AS {{ conn|qtIdent(_('Histogram range values')) }},
range_empty_frac AS {{ conn|qtIdent(_('Empty fraction range')) }},
range_bounds_histogram AS {{ conn|qtIdent(_('Histogram bounds range')) }}
FROM
pg_catalog.pg_stats
WHERE
schemaname = {{schema|qtLiteral(conn)}}
AND tablename = {{table|qtLiteral(conn)}}
AND attname = {{column|qtLiteral(conn)}};
@@ -5,7 +5,10 @@ SELECT
most_common_vals AS {{ conn|qtIdent(_('Most common values')) }},
most_common_freqs AS {{ conn|qtIdent(_('Most common frequencies')) }},
histogram_bounds AS {{ conn|qtIdent(_('Histogram bounds')) }},
correlation AS {{ conn|qtIdent(_('Correlation')) }}
correlation AS {{ conn|qtIdent(_('Correlation')) }},
most_common_elems AS {{ conn|qtIdent(_('Most common elements')) }},
most_common_elem_freqs AS {{ conn|qtIdent(_('Most common elements frequencies')) }},
elem_count_histogram AS {{ conn|qtIdent(_('Histogram element count')) }}
FROM
pg_catalog.pg_stats
WHERE