Re: [COMMITTERS] pgsql: Add GUC temp_tablespaces to provide a default location for

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Add GUC temp_tablespaces to provide a default location for
Дата
Msg-id 23755.1173134708@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [COMMITTERS] pgsql: Add GUC temp_tablespaces to provide a default location for  ("Jaime Casanova" <systemguards@gmail.com>)
Список pgsql-hackers
momjian@postgresql.org (Bruce Momjian) writes:
> Add GUC temp_tablespaces to provide a default location for temporary
> objects.
> Jaime Casanova

I hadn't looked at this patch before, but now that I have, it is
rather broken.

In the first place, it makes no provision for RemovePgTempFiles() to
clean up leftover temp files that are in non-default places.

In the second place, it's a serious violation of what little modularity
and layering we have for fd.c to be calling into commands/tablespace.c.
This is not merely cosmetic but has real consequences: one being that
it's now unsafe to call OpenTemporaryFile outside a transaction.

Please revert until the submitter can come up with a better-designed
patch.
        regards, tom lane


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Bug: Buffer cache is not scan resistant
Следующее
От: Tom Lane
Дата:
Сообщение: Re: proposal: custom variables management