pg_relation_size locking

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема pg_relation_size locking
Дата
Msg-id 439D5FE3.1010702@pse-consulting.de
обсуждение исходный текст
Ответы Re: pg_relation_size locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg_relation_size locking  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: pg_relation_size locking  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Until recently, pg_relation_size used SearchSysCache to locate the 
relation to examine, and calculated the file location from that 
information. Starting with dbsize.c V1.5 (committed after Beta2), 
relation_open(.., AccessShareLock) is used. This is very unfortunate 
because it will not allow to observe a table growing while it is 
populated, e.g. with a lengthy COPY; pg_relation_size will be blocked. 
After reverting to 1.4, everything was fine again.

Can we have this reverted/fixed?

Regards,
Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: psql patch: new host/port
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: psql patch: new host/port