Re: [GENERAL] threads and transaction ...sample code and stored procedure

2005-08-22 Thread Surabhi Ahuja
Title: Re: [GENERAL] threads and transaction ...sample code and stored procedure  hi everyone!   Thanks to Tom, the problem is fine ..The mistake I was doing was setting the isolation level to serializable. and i have imposed an exclusive lock instead of the access exclusive lock

Re: [GENERAL] threads and transaction ...sample code and stored procedure

2005-08-19 Thread Tom Lane
"Surabhi Ahuja " <[EMAIL PROTECTED]> writes: > CREATE OR REPLACE FUNCTION insert_patient (varchar(65),varchar(65),date,var= > char(256)) RETURNS retval AS' > ... > LOCK TABLE patient in ACCESS EXCLUSIVE mode; > select patient_id into patId from patient where patient_key = patKey; > if not found > T