Re: Failed Assert in pgstat_assoc_relation

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Failed Assert in pgstat_assoc_relation
Date: 2022-12-02 05:39:45
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 2022-12-02 00:08:20 -0500, Tom Lane wrote:
> Andres Freund <andres(at)anarazel(dot)de> writes:
> > Do we have any cases of relcache entries changing their relkind?
> Just the table-to-view hack. I'm not aware that there are any other
> cases, and it seems hard to credit that there ever will be any.

I can see some halfway credible scenarios. E.g. converting a view to a
matview, or a table into a partition. I kind of wonder if it's worth keeping
the change, just in case we do - it's not that easy to hit...

> I think we could get rid of table-to-view in HEAD, and use your patch
> only in v15.

WFM. I'll push it to 15 tomorrow.


Andres Freund

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2022-12-02 05:41:06 Re: [PATCH] Add native windows on arm64 support
Previous Message Michael Paquier 2022-12-02 05:26:31 Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert