Re: switch UNLOGGED to LOGGED

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: switch UNLOGGED to LOGGED
Дата
Msg-id BANLkTikuCfwG5=jML_=bXjq7yLKHx8uGjQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: switch UNLOGGED to LOGGED  (Leonardo Francalanci <m_lists@yahoo.it>)
Ответы Re: switch UNLOGGED to LOGGED
Re: switch UNLOGGED to LOGGED
Re: switch UNLOGGED to LOGGED
Список pgsql-hackers
On Fri, Apr 22, 2011 at 4:13 AM, Leonardo Francalanci <m_lists@yahoo.it> wrote:
>> Maybe you should change  xl_act_commit to have a separate list of rels to
>> drop the init fork for  (instead of mixing those with the list of files to
>> drop as a  whole).
>
> I tried to follow your suggestion, thank you very much.

I have to admit I don't like this approach very much.  I can't see
adding 4 bytes to every commit record for this feature.

> 3) Should we have a "cascade" option? I don't know if I have to handle
> inherited tables and other dependent objects

Look at the way ALTER TABLE [ONLY] works for other action types, and copy it.

> 4) During the check for dependencies problems, I stop as soon as I find an
> error; would it be enough?

It's a bit awkwardly phrased the way you have it.  I would suggest
something like:

ERROR:  constraints on permanent tables may reference only permanent tables
HINT:  constraint %s

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Large Objects versus transactional behavior
Следующее
От: Robert Haas
Дата:
Сообщение: Re: switch UNLOGGED to LOGGED