| От | Tom Lane |
|---|---|
| Тема | Re: locking issue on simple selects? |
| Дата | |
| Msg-id | 23278.1284578478@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: locking issue on simple selects? (Tobias Brox <tobixen@gmail.com>) |
| Список | pgsql-performance |
Tobias Brox <tobixen@gmail.com> writes:
> Well - I thought so, we have a logging script that logs the content of
> the pg_locks table, it didn't log anything interesting but it may be a
> problem with the script itself. It does an inner join on
> pg_locks.relation = pg_class.oid but when I check now this join seems
> to remove most of the rows in the pg_locks table. Does it make sense
> at all to join pg_class with pg_locks? I will ask the sysadm to
> change to an outer join as for now.
There are lots of locks that are not tied to a specific table, so an
inner join is definitely bad. You could use an outer join to annotate
rows that do correspond to table locks, though.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера