Re: How to drop a temporary view?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: How to drop a temporary view?
Дата
Msg-id CAHyXU0zafdwcvELTGfrQ0K-WEJoez=ZVgupsbsG15LLGukAePQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to drop a temporary view?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Fri, Apr 20, 2012 at 11:07 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Merlin Moncure <mmoncure@gmail.com> writes:
>> well, arguably you should already know somehow.  but if you don't,
>> query information_schema.views for a table_name with a table_schema
>> LIKE 'pg_temp%'.
>
> Not sure that is safe --- won't the info schema also show temp views
> of other sessions?

nope, it works (you only get to see your own temporary views
information_schema).  i guess you could make an arguable case to fold
the temp schema name to a constant to hide the pg_temp_zz
implementation detail.

merlin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to drop a temporary view?
Следующее
От: Vincenzo Romano
Дата:
Сообщение: Re: How to drop a temporary view?