Re: Database Insertion commitment - Mailing list pgsql-general

From Ragnar
Subject Re: Database Insertion commitment
Date
Msg-id 1183974551.5778.72.camel@localhost.localdomain
Whole thread Raw
In response to Re: Database Insertion commitment  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
List pgsql-general
On mán, 2007-07-09 at 05:22 -0400, Jasbinder Singh Bali wrote:

>
> The only difference between you test case my a sample test case that I
> would provide is the Perform part in the trigger function.
>
> In my program Perform part is about opening a socket connection with a
> Unix Tools server that runs traceroute and populates records in  table
> test.

then the inserts into table test are made in a separate transaction.


>
> One reason I see that new insert does't see the values of old insert
> is because as soon as socket connection is established, my trigger
> returns and 1st insert is complete even though I'm not sure whether
> the unix tools server has already inserted values in table test or
> not. There might be a time lag based on how fast traceroute returns,
> though right now its very fast.

you should be able to see the row if the tools server has
committed before the next trigger fires

gnari

>


pgsql-general by date:

Previous
From: Laurent ROCHE
Date:
Subject: Re : Design Tool
Next
From: alexander lunyov
Date:
Subject: russian case-insensitive regexp search not working