PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> When executing the materialized view refresh, the error occasionally occurs.
> It’s not consistent, but it has been happening frequently after upgrading
> from PG13 to PG17.
There's pretty much zero chance that we can identify this problem
from the given information. Can you create a self-contained
reproducer script? It's okay if it doesn't fail every time,
so long as it fails some of the time.
regards, tom lane