[PATCH] Proposed: Have SPI_connect fail if there is no current snapshot - Mailing list pgsql-patches

From Martijn van Oosterhout
Subject [PATCH] Proposed: Have SPI_connect fail if there is no current snapshot
Date
Msg-id 20050813195700.GF24155@svana.org
Whole thread Raw
Responses Re: [PATCH] Proposed: Have SPI_connect fail if there is no current snapshot
List pgsql-patches
[Please CC any replies]

Hi,

As per discussion on -hackers, type input functions can be called prior
to there being a current snapshot, causing any queries you execute to
fail with the "no snapshot has been set" error. So I propose to simply
have SPI_connect fail right off the bat and document that to avoid
future surprises. At least until the issue of non-immutable type input
functions has been sorted out.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-patches by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: [PATCH] Clarify issues with SPI and C language function limitations
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] Proposed: Have SPI_connect fail if there is no current snapshot