pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Venkatesh Krishnamurthy <venkatesh.krishnamurthy@valtech.co.in>
To: pgsql-sql@postgresql.org
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> (raw)

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

view thread (2+ messages)  latest in thread

Message-ID: <407594B13C4D1D479215D7225A4A99B949702D@INBLR-EX01.valtechindia.com>
Permalink:  ../407594B13C4D1D479215D7225A4A99B949702D@INBLR-EX01.valtechindia.com/
Also on:    postgresql.org/message-id/407594B13C4D1D479215D7225A4A99B949702D@INBLR-EX01.valtechindia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: venkatesh.krishnamurthy@valtech.co.in
  Subject: Re: Tables are not being updated Properly through Trigger
  In-Reply-To: <407594B13C4D1D479215D7225A4A99B949702D@INBLR-EX01.valtechindia.com>
  References: <407594B13C4D1D479215D7225A4A99B949702D@INBLR-EX01.valtechindia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox