Re: Relations being opened without any lock whatever
От | Amit Langote |
---|---|
Тема | Re: Relations being opened without any lock whatever |
Дата | |
Msg-id | eda81aff-89c2-aed4-2997-548d1b4615e5@lab.ntt.co.jp обсуждение исходный текст |
Ответ на | Relations being opened without any lock whatever (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Relations being opened without any lock whatever
|
Список | pgsql-hackers |
On 2018/10/01 4:20, Tom Lane wrote: > Running the regression tests with the patch I showed in > https://www.postgresql.org/message-id/16565.1538327894@sss.pgh.pa.us > exposes two places where HEAD is opening relations without having > any lock at all on them: Maybe you've noticed but the relation_open calls coming from bootstrap.c all pass NoLock which trigger the WARNING: $ initdb -D /tmp/foo <snip> WARNING: relation_open: no lock held on pg_type WARNING: relation_open: no lock held on pg_attrdef WARNING: relation_open: no lock held on pg_constraint WARNING: relation_open: no lock held on pg_inherits WARNING: relation_open: no lock held on pg_index WARNING: relation_open: no lock held on pg_operator WARNING: relation_open: no lock held on pg_opfamily <so on> Do we need to do something about that, like teaching boot_openrel() and gettype() in bootstrap.c to pass AccessShareLock instead of NoLock? Thanks, Amit
В списке pgsql-hackers по дате отправления: