Re: [GENERAL] Temporary tables and miscellaneous schemas

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Temporary tables and miscellaneous schemas
Дата
Msg-id 237.1072153681@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Temporary tables and miscellaneous schemas  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> !         "WHERE    n.nspname NOT LIKE 'pg_temp_%%' OR\n"

You forgot that '_' is a special character for LIKE.  You need some
backslashes there (4 apiece, I think).

Also, there had better be parentheses around the whole OR clause;
else I'm not sure that the precedence will work correctly if
processNamePattern plasters an AND phrase after this.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Temporary tables and miscellaneous schemas
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Temporary tables and miscellaneous schemas