Re: PL/pgSQL 2

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: Joel Jacobson <joel(at)trustly(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/pgSQL 2
Date: 2014-09-04 13:09:22
Message-ID: 54086482.4060800@optionshouse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09/01/2014 04:04 AM, Joel Jacobson wrote:

> + Make UPDATE/INSERT/DELETE throw error if they didnt' modify exactly 1
> row, as that's the most common use-case, and provide alternative syntax
> to modify multiple or zero rows.

What? No. The whole point of SQL is that it's set-based and can modify
multiple rows at once. Hobbling it specifically for functions seems
fundamentally flawed. Especially for what we purport to be a core
PostgreSQL language.

> + Change all warnings into errors

I... what? I could see coming up with a better exception handling
mechanism for escalating messages. But you're talking about taking a
core element of PostgreSQL (warnings) and simply ripping them out so
plpgsql2 loses even that small functionality.

I'm sure you've put a lot of thought into this, but you're not the only
person using plpgsql or any, however ambitious, potential replacement.

--
Shaun Thomas
OptionsHouse, LLC | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604
312-676-8870
sthomas(at)optionshouse(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

In response to

  • PL/pgSQL 2 at 2014-09-01 09:04:53 from Joel Jacobson

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2014-09-04 13:24:16 Re: PL/pgSQL 1.2
Previous Message Robert Haas 2014-09-04 13:07:33 Re: [HACKERS] RE: 答复: [HACKERS] why after increase the hash table partitions, TPMC decrease