unnest-like pg_stats.most_common_values and pg_stats.most_common_freqs

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: unnest-like pg_stats.most_common_values and pg_stats.most_common_freqs
Date: 2017-11-17 20:32:23
Message-ID: CAKoxK+4d8cssGCTjsbLQNxCMaSND2FYvx92X3_moT_rPrfL65g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
maybe this is trivial, but I need an hint on a way to see a table form
of the MCVs and MCFs out of pg_stats with a query. Is it possible to
get a set of rows each with a most common value on one column and the
corresponding column on the the other? (assuming I can cast the array
of MCVs to the right type array)

Thanks,
Luca

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin Pryzby 2017-11-17 20:41:50 Re: unnest-like pg_stats.most_common_values and pg_stats.most_common_freqs
Previous Message John R Pierce 2017-11-17 20:23:52 Re: mild modification to pg_dump