Re: Unescaped new lines in postgres - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Unescaped new lines in postgres
Date
Msg-id 200111230455.fAN4tFY29181@candle.pha.pa.us
Whole thread Raw
In response to Re: Unescaped new lines in postgres  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
> >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
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: v7.2b3 packaged, but not announced beyond here yet ...
Next
From: Tatsuo Ishii
Date:
Subject: Re: OCTET_LENGTH is wrong