What's Prostgres' equivalent of select @@trancount<https://msdn.microsoft.com/en-us/library/ms187967.aspx>? Do you have anidea ?