Re: pg15 inherited stats expressions: cache lookup failed for statistics object

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg15 inherited stats expressions: cache lookup failed for statistics object
Date: 2022-10-31 05:33:50
Message-ID: Y19ePmKU7v6F1PkN@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 31, 2022 at 01:12:09PM +0800, Richard Guo wrote:
> BTW, I noticed a micro-optimization opportunity in examine_variable that
> we can fetch the RangeTblEntry for 'onerel' outside the foreach loop
> when iterating the extended stats so that we can do it only once rather
> than for each stat.

Isn't that the kind of thing where we'd better have some regression
coverage?
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shubham Shingne 2022-10-31 05:33:59 Limit of WAL LSN value of type pg_lsn
Previous Message Kyotaro Horiguchi 2022-10-31 05:32:55 Re: heavily contended lwlocks with long wait queues scale badly