Problem with Postgres 8.1.4

From: "Selvakaruppiah s-TLS,Chennai" <Selvakaruppiahs(at)hcl(dot)in>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Problem with Postgres 8.1.4
Date: 2008-08-11 05:25:59
Message-ID: 4F7EBDFA0A2C5A438E30BD6D0E049AD8014C3853@chn-hclt-evs05.HCLT.CORP.HCL.IN
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Obe, Regina 2008-08-11 13:09:14 Re: join group by etc
Previous Message Peter Jackson 2008-08-09 06:41:47 Re: join group by etc