Re: Multivariate MCV lists -- pg_mcv_list_items() seems to be broken - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Multivariate MCV lists -- pg_mcv_list_items() seems to be broken
Date
Msg-id 17096.1555345562@sss.pgh.pa.us
Whole thread Raw
In response to Multivariate MCV lists -- pg_mcv_list_items() seems to be broken  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: Multivariate MCV lists -- pg_mcv_list_items() seems to be broken
List pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> SELECT pg_mcv_list_items(stxmcv) from pg_statistic_ext WHERE stxname = 'foo_s';
> which fails with
> ERROR:  cache lookup failed for type 0

> That definitely used to work, so I'm guessing it got broken by the
> recent reworking of the serialisation code, but I've not looked into
> it.

Yeah, looks like sloppy thinking about whether or not the types array
participates in maxalign-forcing?

> There should probably be regression test coverage of that function.

+1

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Multivariate MCV lists -- pg_mcv_list_items() seems to be broken
Next
From: Ashwin Agrawal
Date:
Subject: Re: Zedstore - compressed in-core columnar storage