Re: not exactly a bug report, but surprising behaviour

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Gregory Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: not exactly a bug report, but surprising behaviour
Date: 2003-02-04 19:54:39
Message-ID: 20030204195439.GA6016@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 04, 2003 at 14:11:20 -0500,
Gregory Stark <gsstark(at)mit(dot)edu> wrote:
>
> It seems the sort operation is done very late in the process, after functions
> in the select column list have already been called and the results stored.
> This makes using sequences to generate a sequential list of numbers have a
> surprising behaviour.

You can't count on that behavior anyway. Sequences only guarenty a unique
number. Other transactions can grab values from the sequence while
your transaction is running.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-02-04 19:56:21 Re: not exactly a bug report, but surprising behaviour
Previous Message Andrew Sullivan 2003-02-04 19:46:02 Re: Q: explain on delete