pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: cgg007@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: undefine currval()
Date: Mon, 8 Sep 2003 17:03:39 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0309081701100.12311-100000@css120.ihs.com> (raw)
In-Reply-To: <200309082241.h88Mf0o10340@candle.pha.pa.us>

On Mon, 8 Sep 2003, Bruce Momjian wrote:

> I don't know how you could have an application that doesn't know if it
> has issued a nextval() in the current connection. Unless you can explain
> that, we have no intention of playing tricks with currval() for
> connection pooling.

Actually, I would think the very act of using connection pooling would 
ensure that applications may well not know whether or not a nextval had 
been called.  In other words, how is an application supposed to know if 
the previous bit of code that used this connection issued a nextval() when 
you're connection pooling and any piece of code could have run before you.

On the other hand, using currval as a test to see if a value has been used 
is probably not the best way of doing things either.  I'd imagine some 
kind of static or session var would be better suited to that task.




view thread (7+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0309081701100.12311-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0309081701100.12311-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0309081701100.12311-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@ihs.com, pgman@candle.pha.pa.us, cgg007@yahoo.com
  Subject: Re: undefine currval()
  In-Reply-To: <Pine.LNX.4.33.0309081701100.12311-100000@css120.ihs.com>
  References: <200309082241.h88Mf0o10340@candle.pha.pa.us> <Pine.LNX.4.33.0309081701100.12311-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox