Re: pg_autovacuum crashes when query fails for temp

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_autovacuum crashes when query fails for temp
Дата
Msg-id 25712.1082520033@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_autovacuum crashes when query fails for temp  ("Matthew T. O'Connor" <matthew@zeut.net>)
Список pgsql-hackers
"Matthew T. O'Connor" <matthew@zeut.net> writes:
> Just to be sure, I can do this by avoiding anything found in the pg_temp 
> schemea, or is there a better way?  Is it possible that a user could or 
> would put a non-temp table the pg_temp schemea?

The pg_temp_NN schemas are the temp objects, by definition and by
implementation.  (Essentially, the reason a temp table is temp is that
its backend does "DROP SCHEMA pg_temp_NN" on exit.)  See namespace.c,
particularly the isTempNamespace and isOtherTempNamespace functions, for
the gory details.
        regards, tom lane


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: pg_autovacuum crashes when query fails for temp tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_autovacuum crashes when query fails for temp tables