> >From heap.c:
>
> /*
> * sanity checks
> */
> if (relname && !allow_system_table_mods &&
> IsSystemRelationName(relname) && IsNormalProcessingMode())
> elog(ERROR, "invalid relation name \"%s\"; "
> "the 'pg_' name prefix is reserved for system
> catalogs",
> relname);
>
> I guess this is a slightly different example than what the issue is below.
> Maybe I'm wrong and the above code is still legal. Even so, seems a bit
> dodgy to me...
Yes, I have seen this before. It looked pretty nifty when I saw it, and
I have not seen it used in any other code.
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026