summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTomas Vondra2019-07-04 21:43:04 +0000
committerTomas Vondra2019-07-04 23:32:46 +0000
commit4d66285adc6bb4f9e4fd394d478d663cbccb5fc8 (patch)
tree9afc5c0ef3f77893c61ac60acf63f421bb0c716c /src/test
parente365a581c246a8e18f38cc530013391329dcdb02 (diff)
Fix pg_mcv_list_items() to produce text[]
The function pg_mcv_list_items() returns values stored in MCV items. The items may contain columns with different data types, so the function was generating text array-like representation, but in an ad-hoc way without properly escaping various characters etc. Fixed by simply building a text[] array, which also makes it easier to use from queries etc. Requires changes to pg_proc entry, so bump catversion. Backpatch to 12, where multi-column MCV lists were introduced. Author: Tomas Vondra Reviewed-by: Dean Rasheed Discussion: https://postgr.es/m/20190618205920.qtlzcu73whfpfqne@development
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/stats_ext.out6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/regress/expected/stats_ext.out b/src/test/regress/expected/stats_ext.out
index 9e770786cc4..6a070a9649d 100644
--- a/src/test/regress/expected/stats_ext.out
+++ b/src/test/regress/expected/stats_ext.out
@@ -614,9 +614,9 @@ SELECT m.*
pg_mcv_list_items(d.stxdmcv) m
WHERE s.stxname = 'mcv_lists_stats'
AND d.stxoid = s.oid;
- index | values | nulls | frequency | base_frequency
--------+-----------+---------+-----------+----------------
- 0 | {1, 2, 3} | {f,f,f} | 1 | 1
+ index | values | nulls | frequency | base_frequency
+-------+---------+---------+-----------+----------------
+ 0 | {1,2,3} | {f,f,f} | 1 | 1
(1 row)
-- mcv with arrays