Re: Unescaped new lines in postgres

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Unescaped new lines in postgres
Date: 2001-11-23 04:55:15
Message-ID: 200111230455.fAN4tFY29181@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Levi Senft 2001-11-23 07:27:56 PostGreSQL 7.1.3 & SCO OpenServer 5.0.6 problems
Previous Message Christopher Kings-Lynne 2001-11-23 04:53:55 Re: Unescaped new lines in postgres