Concurrent execution of pg_relation_size and DROP TABLE

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Concurrent execution of pg_relation_size and DROP TABLE
Дата
Msg-id 20090903184308.336A.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: Concurrent execution of pg_relation_size and DROP TABLE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I received a trouble-report that a query using pg_relation_size()
ends with an error, "could not open relation". It came from
DROP TABLE was executed concurrently; relation_open() used in
pg_relation_size() raised an error.

Is it reasonable to replace relation_open() calls to try_relation_open() ?
If failed, pg_relation_size() will just return NULLs.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Fwd: Copy out wording
Следующее
От: Sergey Konoplev
Дата:
Сообщение: Re: Feature request: DEFAULT as input value of function argument