Re: [GENERAL] Temporary tables and miscellaneous schemas - Mailing list pgsql-patches

From Tom Lane
Subject Re: [GENERAL] Temporary tables and miscellaneous schemas
Date
Msg-id 237.1072153681@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Temporary tables and miscellaneous schemas  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas