Re: lastval() - Mailing list pgsql-patches

From Dennis Bjorklund
Subject Re: lastval()
Date
Msg-id Pine.LNX.4.44.0505090605450.7072-100000@zigo.dhs.org
Whole thread Raw
In response to Re: lastval()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Sun, 8 May 2005, Tom Lane wrote:

> Why is that a good idea?  In a complex application it'd be awfully easy
> to break logic that depends on such a thing.

Of course it can break. currval() can also break in a complex application
with triggers and rules that do things the developer does not expect.

There are however lots of cases where it is safe and useful. Not the least
when you want to port an application that uses similar features.

--
/Dennis Björklund


pgsql-patches by date:

Previous
From: Satoshi Nagayasu
Date:
Subject: Re: [HACKERS] read-only database
Next
From: Dennis Bjorklund
Date:
Subject: Re: lastval()