In postgresql a query in the querylog gets something like this:

2009-02-05 00:12:27 CET LOG:  duration: 3781.634 ms  execute <unnamed>: SELECT QUERY ....

Is there a possibility to put something more usable into the "< unnamed >" placed like the url the query was requested from?

Are there any other possibilities to track the origin of a query in postgresql using jdbc from java?

Thanks

Edit
Report