table_open/table_close with different lock mode - Mailing list pgsql-hackers

From Junwang Zhao
Subject table_open/table_close with different lock mode
Date
Msg-id CAEG8a3+90m3CYiQJvp=TaTCrdh27c12d05DcYLK51jZn87nL1Q@mail.gmail.com
Whole thread Raw
Responses Re: table_open/table_close with different lock mode
List pgsql-hackers
Hey hackers,

I noticed there are some places calling table_open with
RowExclusiveLock but table_close with NoLock, like in function
toast_save_datum.

Can anybody explain the underlying logic, thanks in advance.

-- 
Regards
Junwang Zhao



pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: Tatsuo Ishii
Date:
Subject: Re: Row pattern recognition