Re: ANSI Compliant Inserts

From: Michael Loftis <mloftis(at)wgops(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Rod Taylor <rbt(at)zort(dot)ca>, pgsql-patches(at)postgresql(dot)org
Subject: Re: ANSI Compliant Inserts
Date: 2002-04-15 05:12:36
Message-ID: 3CBA6144.3070206@wgops.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

IMHO, from a developers/users prospective I want to get atleast a NOTICE
when they mismatch, and really preferably I want the query to fail
because if I'm naming a column list then forget a value for it something
is wrong...

Bruce Momjian wrote:

>Tom Lane wrote:
>
>>Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>>
>>>>In general I'm suspicious of rejecting cases we used to accept for
>>>>no good reason other than that it's not in the spec. There is a LOT
>>>>of Postgres behavior that's not in the spec.
>>>>
>>>TODO has:
>>> o Disallow missing columns in INSERT ... VALUES, per ANSI
>>>
>>Where's the discussion that's the basis of that entry? I don't recall
>>any existing consensus on this (though maybe I forgot).
>>
>
>I assume someone (Peter?) looked it up and reported that our current
>behavior was incorrect and not compliant. I didn't do the research in
>whether it was compliant.
>
>>There are a fair number of things in the TODO list that you put there
>>because you liked 'em, but that doesn't mean everyone else agrees.
>>I certainly will not accept "once it's on the TODO list it cannot be
>>questioned"...
>>
>
>I put it there because I didn't think there was any question. If I was
>wrong, I can add a question mark to it.
>
>Do you want to argue we should continue allowing it? Also, what about
>missing trailling columns in COPY?
>
>If we continue allowing missing INSERT columns, I am not sure we can
>claim it is an extension or whether the standard requires the query to
>fail.
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-04-15 05:27:54 Re: ANSI Compliant Inserts
Previous Message Barry Lind 2002-04-15 04:56:44 Re: 7.3 schedule

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Naeslund(f) 2002-04-15 05:15:02 Re: Win32 Error descriptions + config
Previous Message Tom Lane 2002-04-15 05:02:58 Re: contrib/dblink update