Re: (Fwd) Re: Any Oracle 9 users? A test please... - Mailing list pgsql-hackers

From Yury Bokhoncovich
Subject Re: (Fwd) Re: Any Oracle 9 users? A test please...
Date
Msg-id Pine.LNX.4.44L0.0210021431310.17945-100000@panda.center-f1.ru
Whole thread Raw
In response to Re: (Fwd) Re: Any Oracle 9 users? A test please...  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: (Fwd) Re: Any Oracle 9 users? A test please...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello!

On Mon, 30 Sep 2002, Bruce Momjian wrote:

> It is not clear to me;  is this its own transaction or a function call?

BTW.
As reported by my friend:
Oracle 8.1.7 (ver.9 behaves the same way):

--- cut ---
SQL> SET TRANSACTION READ WRITE;

Transaction set.

SQL> SELECT TO_CHAR(SYSDATE, 'DD-MM-YYYY HH24:MI:SS') FROM DUAL;

TO_CHAR(SYSDATE,'MM
-------------------
02-10-2002 10:04:19

SQL> -- wait a lot

SQL> SELECT TO_CHAR(SYSDATE, 'DD-MM-YYYY HH24:MI:SS') FROM DUAL;

TO_CHAR(SYSDATE,'MM
-------------------
02-10-2002 10:04:27

SQL> COMMIT;

Commit complete.
--- cut ---


> > > > > Any Oracle 9 users out there?
> > > > >
> > > > > I need this run:
> > > > >
> > > > >         BEGIN;
> > > > >         SELECT CURRENT_TIMESTAMP;
> > > > >         -- wait 5 seconds
> > > > >         SELECT CURRENT_TIMESTAMP;
> > > > >
> > > > > Are those two timestamps the same?

-- 
WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group.
Phone: +7 (3832) 106228, ext.140, E-mail: byg@center-f1.ru.
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.




pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: [GENERAL] New PostgreSQL Website : advocacy.postgresql.org
Next
From: Mark Kirkwood
Date:
Subject: Re: Improving speed of copy