From: | JBurtenshaw at cooperstandard(dot)com (Burtenshaw, John J(dot)) |
---|---|
To: | |
Subject: | [Pljava-dev] Question regarding triggers and data visibility |
Date: | 2005-11-11 21:27:20 |
Message-ID: | 75F39425D1954A4380D5C9E1D630CDC903EA912E@C2A007.stratford.auto.cooperintra.ctb |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
I have created a trigger that notifies a daemon process (via the java
RMI mechanism) that a new record has been inserted into a table. The
problem I am having is that the record is not visible to the daemon
process after it performs a 'select' on the table in question. Further
investigation shows that the new record was successfully inserted into
the table. The strange thing is that if I do a table lock (i.e. 'lock
table') in the trigger method before notifying the daemon the data
becomes visible to the daemon!! I don't like using the lock as I have
had issues with the lock causing random problems. Any ideas as to how I
can make the new data visible?
Regards,
John Burtenshaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20051111/7c56f5dd/attachment.html>
From | Date | Subject | |
---|---|---|---|
Next Message | Burtenshaw, John J. | 2005-11-11 21:57:32 | [Pljava-dev] Question regarding triggers and data visibility |
Previous Message | Thomas Hallgren | 2005-11-10 18:41:57 | [Pljava-dev] debug pljava with postgresql 8.0 |