From: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
To: pgsql-jdbc@postgresql.org
Subject: [OT] Re: Transaction atomicity
Date: Thu, 08 Mar 2007 18:04:24 +0100
Message-ID: <1173373464.5627.9.camel@scarafaggio> (raw)
In-Reply-To: <1173288305.20645.67.camel@scarafaggio>
References: <C2143278.1F03%jeff.hubbach@cha.com>
<45EEEA1C.5050105@enterprisedb.com>
<1173288305.20645.67.camel@scarafaggio>
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
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-jdbc@postgresql.org
Cc: giuseppe@eppesuigoccas.homedns.org
Subject: Re: [OT] Re: Transaction atomicity
In-Reply-To: <1173373464.5627.9.camel@scarafaggio>
References: <C2143278.1F03%jeff.hubbach@cha.com> <45EEEA1C.5050105@enterprisedb.com> <1173288305.20645.67.camel@scarafaggio> <1173373464.5627.9.camel@scarafaggio>
* 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