Re: PostgreSQL Gotchas

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, "Aly S(dot)P Dharshi" <aly(dot)dharshi(at)telus(dot)net>, "Gavin M(dot) Roy" <gmr(at)ehpg(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Gotchas
Date: 2005-10-08 01:49:34
Message-ID: 20051008014934.GE36108@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 06, 2005 at 07:29:44PM -0400, Tom Lane wrote:
> Well, it's surely legitimate material as a "gotcha". The example is
> taken from
> http://archives.postgresql.org/pgsql-general/2004-11/msg01375.php
> and the "previous discussion" referred to is this thread:
> http://archives.postgresql.org/pgsql-hackers/2004-10/msg00082.php
>
> As you can see, there wasn't a lot of agreement that we ought to change
> it. Arguably, if we did change it we'd get ripped for the "gotcha" of
> poor optimization when the user forgets to mark nonvolatile functions
> properly. (Personally, though, I'm in favor of tightening it up.)

Aren't there a good number of performance issues if you mis-mark a
function?

In any case, ISTM it'd be much better to perform poorly rather than give
bad/wrong results. I don't really see much dissention there, so I'd vote
for making the change for 8.2.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2005-10-08 01:54:51 Re: PostgreSQL Gotchas
Previous Message Jim C. Nasby 2005-10-08 01:26:15 Re: PostgreSQL 8.1 vs. MySQL 5.0?