Re: ON COMMIT options for non temporary tables

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: ON COMMIT options for non temporary tables
Дата
Msg-id b944e45c61ebb397693958e6927c4c235885e1d2.camel@cybertec.at
обсуждение исходный текст
Ответ на ON COMMIT options for non temporary tables  (P V Tekawade <pvtekawade@gmail.com>)
Ответы Re: ON COMMIT options for non temporary tables
Список pgsql-general
On Thu, 2019-11-21 at 21:23 +0530, P V Tekawade wrote:
> For my work with Postgres 11.5, I needed functionality that unlogged tables
> are automatically dropped at the commit time, but I found that ON COMMIT
> option is only supported with temporary table.
> I would like to understand reasons why this option is limited to temporary tables?
> Is there any problem by making this option available for other type of tables
> such as unlogged tables?

How should that work for tables other than temporary tables?
Should COMMIT lock if somebody else accesses the table?

What keeps you from explicitly dropping the table right before
you commit?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Remote Connection Help
Следующее
От: Marc Millas
Дата:
Сообщение: Re: Extract transaction from WAL