Re: It's past time to redo the smgr API

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: It's past time to redo the smgr API
Дата
Msg-id 17804.1076024036@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: It's past time to redo the smgr API  ("Marc G. Fournier" <scrappy@postgresql.org>)
Ответы Re: It's past time to redo the smgr API  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-hackers
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> k, but that would be a different scenario, no?  As I mentioned in my
> original, a DROP TABLE would reset its timeout to -1, meaning to close it
> and drop it on the next checkpoint interval ...

How would it do that?  These structs are local to particular backends,
so there's no way for a DROP TABLE occurring in one backend to reach
over and reset the timeout in the bgwriter process.  If we add
communication that lets the bgwriter know the table is being dropped,
then the problem is solved directly.
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: It's past time to redo the smgr API
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: It's past time to redo the smgr API