<div dir="ltr"><span style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">Hi dev's, </span><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">We currently use a lot transaction groups (the thing hidden in project properties) [0], so that triggers do their job on the fly and all layers are refreshed together on each edit action, without having to manually save edits and refresh maps. </div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><br></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">This works very well, but sometimes we want to trigger procedures on DB's side and we are forced to some hack by adding attribute tables and inserting fake feature in it to trigger what we need (such as disconnect objets, cut features, refresh some views, ..) </div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><br></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">Is there a way to access the current transaction group from a layer in a python layer action so that we could avoid using those fake tables? I would like to simply reuse the current postgres connection to do some "select my_special_function([my _args]); " </div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><br></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">If we have a way to do that, that would allow QGIS to be a client for in-DB service-oriented architectures. </div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><br></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">Thanks for your lights !</div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><br></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">All the best,</div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">Régis  </div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><a href="mailto:regis.haubourg@oslandia.com">regis.haubourg@oslandia.com</a></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal"><br></div><div style="color:rgb(0,0,0);font-family:lato;font-size:13px;line-height:normal">[0] <a href="http://qgis.org/en/site/forusers/visualchangelog214/#feature-transaction-groups-for-postgres-editing">http://qgis.org/en/site/forusers/visualchangelog214/#feature-transaction-groups-for-postgres-editing</a></div></div>