In SQLServer when we have applications for which we do not have source code we could use SQLServer profiler to analyze which queries or procedures are called when we do something in app. Now I have similar situation with .NET third party library and postgre database when it would be very useful to track queries called by that library. I found something similar in pgAdmin, but so far I know it appear to by useful to track only sql queries that are executed in pgAdmin, not queries from external applications. I'm not very fluent in postgre, because this is my first contact with this environment.
So to sum up: Is there a tool that allow me to track queries executed on postgre database from external applications?