Re: Common Table Expressions (WITH RECURSIVE) patch

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>,<pgsql(at)j-davis(dot)com>, "Tatsuo Ishii" <ishii(at)postgresql(dot)org>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Common Table Expressions (WITH RECURSIVE) patch
Date: 2008-09-17 14:13:33
Message-ID: 48D0CA3D.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Robert Haas" <robertmhaas(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ron Mayer 2008-09-17 14:19:18 Re: Patch for SQL-standard negative valued year-month literals
Previous Message Tom Lane 2008-09-17 13:36:26 Re: [PATCHES] libpq events patch (with sgml docs)