On Sun, Jan 19, 2025 at 01:00:04AM +0800, jian he wrote:
> On Fri, Jan 17, 2025 at 10:20 PM jian he <jian.universal...@gmail.com> wrote:
>> dump and execute the above query generated a warning
>> WARNING:  missing lock for relation "tenk1_hundred" (OID 18431,
>> relkind i) @ TID (15,34)
>
> This seems to be an existing issue.
> For pg_restore_relation_stats, we don't have regress tests for index relation.
> I am not sure the WARNING is ok.

This is not OK based on the rules introduced by Noah at aac2c9b4fde8.
check_lock_if_inplace_updateable_rel() expects a lock to be taken.
Note that elog() are used when reports should never be user-facing,
for states that should not be reachable.
--
Michael

Attachment: signature.asc
Description: PGP signature

Reply via email to