Search Postgresql Archives

visibility rules for AFTER UPDATE Constraint Triggers Function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a PLpgSQL AFTER UPDATE constraint trigger that calls a trigger function with an embedded select statement.

The select statement queries the affected table and returns a mult-result set that includes the record equivalent to NEW.

However, It seems the select doesn't yet see the non-committed records. I.E. the record that should be equal to NEW is in fact equal to OLD.

Is this correct? Is there a way to adjust the visibility so that yet-to-be committed tuples are seen by the trigger function?

Regards,
Richard Broersma Jr.



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux