Group: pgsql.sql


Subject: select sum within transaction problem
From: tgl@sss.pgh.pa.us (Tom Lane)
Date: 9/11/2007 9:09:13 PM
"Bart Degryse" <Bart.Degryse@indicator.be> writes: > I have a function like below (simplified). Everything works the way I want = > it to except for one thing. > After the select statement sum_revenues is NULL instead of the real sum. > Has this something to do with the earlier deletes and inserts not being = > committed yet? No. I suspect the problem is hidden somewhere in the code you didn't show us. In particular you should check whether the insert/selects are actually finding anything to insert ... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq