Re: Reviewing temp_tablespaces GUC patch

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Reviewing temp_tablespaces GUC patch
Дата
Msg-id 20070524231844.GU4320@alvh.no-ip.org
обсуждение исходный текст
Ответ на Reviewing temp_tablespaces GUC patch  (Bernd Helmle <mailings@oopsware.de>)
Ответы Re: Reviewing temp_tablespaces GUC patch  ("Jaime Casanova" <systemguards@gmail.com>)
Список pgsql-hackers
Bernd Helmle escribió:

> It's possible that someone could drop a temporary tablespace between 
> subsequent usage of GetTempTablespace() when they are empty. This leads to 
> strange NOTICEs like
> 
> NOTICE:  could not create temporary file 
> "pg_tblspc/16387/pgsql_tmp/pgsql_tmp19942.0"
> 
> during query execution. However, the code is save enough and switches back 
> to base/pgsql_tmp then, but this looks a little bit ugly to me. The silent 
> mechanism to drop a tablespace during temporary usage makes me a little bit 
> uncomfortable about its robustness.

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?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Reviewing temp_tablespaces GUC patch
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: like/ilike improvements