Re: lastval()

From: Abhijit Menon-Sen <ams(at)oryx(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: lastval()
Date: 2005-05-11 03:35:45
Message-ID: 20050511033545.GA23670@penne.toroid.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

At 2005-05-10 23:30:05 -0400, pgman(at)candle(dot)pha(dot)pa(dot)us wrote:
>
> > By the way, what would lastval() do if an insert trigger inserts
> > a row into a table with another serial column?
>
> It fails, just like it would fail now if the trigger inserted into
> the same table that used the trigger, or a rule.

I don't understand what you mean. "Just like it would fail now"? It
doesn't exist yet, how can it fail? And how would it know when to
fail anyway, rather than return a wrong value?

-- ams

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-05-11 03:44:38 Re: lastval()
Previous Message Bruce Momjian 2005-05-11 03:30:05 Re: lastval()

Browse pgsql-patches by date

  From Date Subject
Next Message John Hansen 2005-05-11 03:39:40 Re: lastval()
Previous Message Bruce Momjian 2005-05-11 03:30:05 Re: lastval()