X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4614752B94 for ; Mon, 15 Aug 2005 09:37:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91980-02 for ; Mon, 15 Aug 2005 12:36:55 +0000 (GMT) Received: from inblr-ef01.valtechindia.com (electra.valtech.co.in [164.164.88.45]) by svr1.postgresql.org (Postfix) with ESMTP id D602452BD8 for ; Mon, 15 Aug 2005 09:36:53 -0300 (ADT) Received: from INBLR-EX01.valtechindia.com ([192.168.130.12]) by inblr-ef01.valtechindia.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 15 Aug 2005 18:07:23 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5A196.122E9742" Subject: Tables are not being updated Properly through Trigger Date: Mon, 15 Aug 2005 18:07:23 +0530 Message-ID: <407594B13C4D1D479215D7225A4A99B949702D@INBLR-EX01.valtechindia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Tables are not being updated Properly through Trigger Thread-Index: AcWhlhW7JJUDO/BCTa+d8a4+ZA41RA== From: "Venkatesh Krishnamurthy" To: X-OriginalArrivalTime: 15 Aug 2005 12:37:23.0734 (UTC) FILETIME=[16118360:01C5A196] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.051 required=5 tests=[FORGED_RCVD_HELO=0.05, HTML_MESSAGE=0.001] X-Spam-Level: X-Archive-Number: 200508/163 X-Sequence-Number: 22391 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5A196.122E9742 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We have written a trigger on insertion which is supposed to update 3 tables with new data. We are seeing a weird thing happening with Postgres, i.e. If we have 4 records to be updated on insertion trigger, postgres updates the first 3 records in the 3 tables properly, and when it comes to final record, it is updating only the first 2 tables in sequence and is skipping the 3rd table. So, we are ending up with the improper data. Any body has come across such an issue earlier or can anybody tell us whats happening here ? Thanks, Venkatesh ------_=_NextPart_001_01C5A196.122E9742 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Tables are not being updated Properly through Trigger

We = have written a trigger on insertion which is supposed = to update 3 tables with new = data.  We are seeing a weird thing = happening with = Postgres, i.e.  If we have = 4 records to be updated on = insertion trigger, postgres updates the first 3 records in the 3 tables = properly, and when it comes to final record, it is updating only the = first 2 tables in sequence and is skipping the 3rd table.  So, we are = ending up with the improper data. = Any body has come across such an issue earlier or can anybody tell us = whats happening here ?


Thanks,

Venkatesh

------_=_NextPart_001_01C5A196.122E9742--