From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Roland Roberts <roland@astrofoto.org>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] CURRENT_TIMESTAMP
Date: Tue, 24 Sep 2002 10:10:03 -0500
Message-ID: <20020924151003.GC7612@rice.edu> (raw)
In-Reply-To: <m2fzvzv3ma.fsf@kuiper.rlent.pnet>
References: <21724.1032793386@sss.pgh.pa.us>
<200209231506.g8NF6JP13779@candle.pha.pa.us>
<0meuousc373fdokv3bbke116jsbkpakno2@4ax.com>
<22827.1032800742@sss.pgh.pa.us>
<kgmuouku2imliobrrck45ugkc0hlrkbo1v@4ax.com>
<20020924011912.GA16430@svana.org>
<m2fzvzv3ma.fsf@kuiper.rlent.pnet>
On Tue, Sep 24, 2002 at 10:55:41AM -0400, Roland Roberts wrote:
> >>>>> "Martijn" == Martijn van Oosterhout <kleptog@svana.org> writes:
>
> Martijn> Well, what I would suggest is that when you wrap several
> Martijn> statements into a single transaction with begin/commit,
> Martijn> the whole lot could be considered a single statement
> Martijn> (since they form an atomic transaction so in a sense they
> Martijn> are all executed simultaneously). And hence Postgresql is
> Martijn> perfectly compliant.
>
> FWIW, and not that I am an Oracle fan :-), Oracle seems to interpret
> this the same way when using a "select sysdate from dual" inside a
> transaction.
Oh, interesting datapoint. Let me get this clear - on oracle, the
equivalent of:
BEGIN;
SELECT current_timestamp;
<go off to lunch, come back>
SELECT current_timestamp;
END;
will give two identical timestamps?
Ross
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: reedstrm@rice.edu, roland@astrofoto.org, pgsql-general@postgresql.org
Subject: Re: [GENERAL] CURRENT_TIMESTAMP
In-Reply-To: <20020924151003.GC7612@rice.edu>
* 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