Re: Possible Bug in relation_open

2024-05-21 Thread Tom Lane
Robert Haas writes: > On Tue, May 21, 2024 at 9:58 AM Pradeep Kumar > wrote: >> If the user tries to open the relation in RangeVar and NoLock mode calling >> table_openrv(relation, NoLock), it will internally call >> relation_openrv()-->relation_open(). In relation_open() we checking the >> A

Re: Possible Bug in relation_open

2024-05-21 Thread Robert Haas
On Tue, May 21, 2024 at 9:58 AM Pradeep Kumar wrote: > If the user tries to open the relation in RangeVar and NoLock mode calling > table_openrv(relation, NoLock), it will internally call > relation_openrv()-->relation_open(). In relation_open() we checking the > Assert(lockmode >= NoLock && lo

Possible Bug in relation_open

2024-05-21 Thread Pradeep Kumar
Hello Hackers, If the user tries to open the relation in RangeVar and NoLock mode calling *table_openrv(relation, NoLock), *it will internally call relation_openrv()-->relation_open(). In *relation_open() *we checking the Assert(lockmode >= NoLock && lockmode < MAX_LOCKMODES); , here we expecting