Re: [PATCHES] ANSI Compliant Inserts - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] ANSI Compliant Inserts
Date
Msg-id 200204150413.g3F4Dk025524@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] ANSI Compliant Inserts  ("Rod Taylor" <rbt@zort.ca>)
List pgsql-hackers
Rod Taylor wrote:
> For the latter one, it could be argued that the user understands the
> table in question and has inserted the values they require.  New
> columns are added at the end, and probably don't affect the operation
> in question so why should it be changed to suit new columns?   But,
> automated code should always be written with the columns explicitly
> listed, so this may be a user who has simply forgotten to add the
> value -- easy to do on wide tables.

I think our new DEFAULT for insert allows people to properly match all
columns, and I think it is too error prone to allow missing columns in
any INSERT.

--  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: "Rod Taylor"
Date:
Subject: Re: [PATCHES] ANSI Compliant Inserts
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] ANSI Compliant Inserts