Re: Reviewing temp_tablespaces GUC patch

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Reviewing temp_tablespaces GUC patch
Дата
Msg-id c2d9e70e0705250349s12c72ee3la36dfa1c9ee1327f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Reviewing temp_tablespaces GUC patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reviewing temp_tablespaces GUC patch  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
On 5/25/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Jaime Casanova" <systemguards@gmail.com> writes:
> > On 5/24/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> >> What happens if you create a cursor that stores something (sort
> >> intermediate results?) in a temp tablespace, FETCH some from it, then
> >> someone else drops the tablespace and FETCH some more?
>
> > you can't drop a tablespace that is not empty.
>
> So a temp file left over by a crashed backend would indefinitely prevent
> dropping the tablespace, until someone manually cleaned it up?
>

No, because the RemovePgTempFiles() call in PostmasterMain() will
remove all tmp files at startup.

-- 
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."                                      Richard Cook


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

Предыдущее
От: "Zeugswetter Andreas ADI SD"
Дата:
Сообщение: Re: like/ilike improvements
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: like/ilike improvements