[OT] Re: Transaction atomicity

From: Giuseppe Sacco <giuseppe(at)eppesuigoccas(dot)homedns(dot)org>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [OT] Re: Transaction atomicity
Date: 2007-03-08 17:04:24
Message-ID: 1173373464.5627.9.camel@scarafaggio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Il giorno mer, 07/03/2007 alle 18.25 +0100, Giuseppe Sacco ha scritto:
> Hi Heikki,
[...]
> > CREATE SEQUENCE fooseq MINVALUE 10000000 MAXVALUE 19999999 NO CYCLE
>
> This is the same solution I was thinking of, and probably the best one.
> I checked that currently the application only loops an average of 4
> times, so I don't have a real urgency of switching to sequences. I will
> implement this code in two weeks from now, since I should have enough
> time.

[a bit off topic]
Just for the records: sql-server doesn't accept the max() solution, so I
will have to implement the sequence way very quickly. The error I get
is: errorCode=1046, sqlState= S1000 "Subqueries are not allowed in this
context. Only scalar expressions are allowed" :-)

Again, thanks to all,
Giuseppe

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2007-03-08 17:39:29 Re: Inserting "null" not working (Sun App Server, Postgres, EJB3)?
Previous Message Heiko W.Rupp 2007-03-08 16:06:53 Re: Inserting "null" not working (Sun App Server, Postgres, EJB3)?