Problem with Postgres 8.1.4 - Mailing list pgsql-novice

From Selvakaruppiah s-TLS,Chennai
Subject Problem with Postgres 8.1.4
Date
Msg-id 4F7EBDFA0A2C5A438E30BD6D0E049AD8014C3853@chn-hclt-evs05.HCLT.CORP.HCL.IN
Whole thread Raw
In response to For Perl users - hope it helps somebody  ("Leo" <fleovey@jus.gov.ar>)
List pgsql-novice

Hi All

 

I am facing a problem with Postgres 8.1.4 Windows native version.

I am writing a simple application that executes an update query in a postgres database.

This query execution will be called in a loop for 500 times.

After starting the execution of the exe, I am switching off the Postgres server machine (say abrupt shutdown of the machine happened).

In this scenario, my sample application hangs.

 

Application code snippet would be like the below.

 

DBObj.Open (NULL, FALSE, FALSE, ConnectionString);

SQL = "Update mytable set sno=1 where sno=1";

for(int n=0; n<500; n++)

{

Try

{

WriteLog(“Start”);

DBObj.ExecuteSQL (strSql);

WriteLog(“End”);

}

Catch Exceptions…{}

}

 

 

Application hangs in the ExecuteSql statement itself.

 

This problem is not happening with Postgres 7.2.4 that runs on top of Cygwin.

And also this problem is not happening if I shutdown the server alone from Services

Instead of machine shutdown.

 

Any help is appreciated.

Thanks in advance.

 

Regards,

Selva

 

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

pgsql-novice by date:

Previous
From: Peter Jackson
Date:
Subject: Re: join group by etc
Next
From: "Obe, Regina"
Date:
Subject: Re: join group by etc