Re: Removal of temp tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Removal of temp tables
Дата
Msg-id 16255.992494326@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Removal of temp tables  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Removal of temp tables  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am wondering if pg_temp tables should even be seen as system tables by
> IsSystemRelationName().  We have to call them pg_ so user applications
> don't display them, but other than that they aren't like system tables.
> Comments?

This oughta be discussed on pghackers, not just -patches.  But my
thought is that we need a three-way distinction; at least some of the
IsSystemRelation checks presumably *should* accept temp relnames, else
we'd not have decided to do it that way in the first place.

Another point is that when we implement schemas (= Real Soon Now, I
trust), the whole business of temprels having different physical and
logical relnames will go away anyhow.  Temp rels will become plain rels
that live in a temp schema.  So it may not be worth adding further
complexity to support the present approach.  We'll just have to rip
it out again ... better to expend the work on making schemas.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Removal of temp tables
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Australian timezone configure option