table_open/table_close with different lock mode

From: Junwang Zhao <zhjwpku(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: table_open/table_close with different lock mode
Date: 2023-07-21 06:05:56
Message-ID: CAEG8a3+90m3CYiQJvp=TaTCrdh27c12d05DcYLK51jZn87nL1Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2023-07-21 06:16:48 Re: Row pattern recognition
Previous Message Bharath Rupireddy 2023-07-21 06:05:55 Re: Synchronizing slots from primary to standby