Re: Common Table Expressions (WITH RECURSIVE) patch - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Common Table Expressions (WITH RECURSIVE) patch
Date
Msg-id 48D0CA3D.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to Re: Common Table Expressions (WITH RECURSIVE) patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
>>> Tom Lane <tgl@sss.pgh.pa.us> wrote: 
> "Robert Haas" <robertmhaas@gmail.com> writes:
>>> I am not sure, if these rule is good. Somebody who develop on
>>> postgresql should have a problems when they will be port to other
>>> databases in future. Reserved words in standards should be
respected.
> 
>> If people want to write code that will work on multiple databases,
>> they should of course avoid using any SQL reserved words for
anything
>> other than their reserved purposes.
> 
> More than that, they have to actually test their SQL on each target
DB.
> Every DB (including us) is going to have some reserved words that
are
> not in the standard; so imagining that Postgres can all by itself
> protect you from this type of problem is doomed to failure anyway.
If someone wants portable code, they can use a development tool which
wraps ALL identifiers in quotes, every time.  That's what we do.  The
important thing is that, to the extent practicable, standard SQL code
is accepted and behaves in compliance with the standard.  I don't see
that it does anything to compromise that if you support additional,
non-standard syntax for extensions.
-Kevin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] libpq events patch (with sgml docs)
Next
From: Ron Mayer
Date:
Subject: Re: Patch for SQL-standard negative valued year-month literals