pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Smith <x@xman.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [SQL] Problems ensuring uniqueness?
Date: 18 Jun 2001 15:23:57 -0700
Message-ID: <992903037.6594.3.camel@rivest.xdrive.com> (raw)
In-Reply-To: <8975.992901854@sss.pgh.pa.us>
References: <992898628.6594.1.camel@rivest.xdrive.com>
	<8896.992900535@sss.pgh.pa.us>
	<992901470.6585.2.camel@rivest.xdrive.com>
	<8975.992901854@sss.pgh.pa.us>

On 18 Jun 2001 18:04:14 -0400, Tom Lane wrote:
> Christopher Smith <x@xman.org> writes:
> >> Um ... surely that should be "if count > 0" ?  Or was that just a
> >> transcription error?
> >> 
> >> This approach certainly ought to work as desired given the exclusive
> >> lock, so a silly typo seems like a plausible explanation...
> 
> > Sorry, it is indeed a transcription error (sadly).
> 
> Oh well.  The next thought, given that you mention threads, is that
> you've got multiple threads issuing commands to the same backend
> connection; in which case the interlocking you think you have doesn't
> exist at all...

You got it bang on... I thought I had isolated access to the connections
properly, but shortly after posting that last e-mail, had a eureka moment.
I presume this will make the bug go away, so I'll encourage everyone to
ignore this thread (other than as a warning ;-) until I've confirmed I
still have the problem after making the correct adjustments.

--Chris




view thread (5+ messages)

Message-ID: <992903037.6594.3.camel@rivest.xdrive.com>
Permalink:  ../992903037.6594.3.camel@rivest.xdrive.com/
Also on:    postgresql.org/message-id/992903037.6594.3.camel@rivest.xdrive.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: x@xman.org, tgl@sss.pgh.pa.us, pgsql-jdbc@postgresql.org
  Subject: Re: [SQL] Problems ensuring uniqueness?
  In-Reply-To: <992903037.6594.3.camel@rivest.xdrive.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