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

From Mike Mascari
Subject Re: (Fwd) Re: Any Oracle 9 users? A test please...
Date
Msg-id 3D9B10D9.2070208@mascari.com
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...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> Mike Mascari wrote:>>
>>Oracle isn't processing those statements interactively. SQL*Plus 
>>is waiting on the "/" to send the PL/SQL block to the database. 
>>I suspect its not going to take Oracle more than a second to 
>>insert a row...
> 
> 
> Oh, I understand now.  He delayed when entering the function body, but
> that has no effect when he sends it.  Can someone add an explicit sleep
> in the function body and try that?
> 

SQL> create table foo (a date);

Table created.

SQL> begin  2  insert into foo select sysdate from dual;  3  dbms_lock.sleep(5);  4  insert into foo select sysdate
fromdual;  5  end;  6  /
 

PL/SQL procedure successfully completed.

SQL> select to_char(a, 'HH24:MI:SS') from foo;

TO_CHAR(
--------
11:31:02
11:31:07

Mike Mascari
mascarm@mascari.com






pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: (Fwd) Re: Any Oracle 9 users? A test please...
Next
From: Vince Vielhaber
Date:
Subject: Re: Release of 7.2.3