It seems the issue was related to some misconfiguration of my postgresql server,
I've migrated from pg 14 to 17 and now the issue has disappeared.
Also, I replaced relation_open with table_open
Le mar. 14 janv. 2025 à 15:40, Tom Lane <tgl@sss.pgh.pa.us> a écrit :
Giampaolo Capelli <giampow@gmail.com> writes: > The function relation_open returns a non NULL pointer in my extension, but > then the last line in the following snippet crashes postgres.