Re: Question about SPI_prepare

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question about SPI_prepare
Date: 2008-11-11 18:01:59
Message-ID: 20081111180159.GI2459@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 11, 2008 at 11:33:41AM -0600, Tim Keitt wrote:
> I have an application where I am building a plan with SPI_plan and
> then this plan is called multiple times. There is one free parameter
> ($1) to the plan. The issue is with the order of the values returned.
> If $1 is identical during successive calls to SPI_execute_plan, is
> there any guarantee that the rows will be returned in the same order?

No, AFAIK SeqScans will start from different places if there's someone
else doing a scan on the table (or has done recently).

Sam

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ibrar Ahmed 2008-11-11 18:21:57 Re: quick question about "WIP: grouping sets support"
Previous Message Jeff Davis 2008-11-11 17:54:44 Re: auto_explain contrib moudle