The following bug has been logged on the website:
Bug reference: 18742
Logged by: Daniel Elishakov
Email address: dan-eli(at)mail(dot)ru
PostgreSQL version: 16.4
Operating system: ubuntu 20.04
Description:
Deref of view->rd_rules->numLocks takes place without checking
view->rd_rules for NULL. The check rel->rd_rules for NULL above leaves an
opportunity for calling get_view_query() function. During the initialization
and execution rd_rules field of Relation structure is NULL.