Boboc Cristi <bobocc(at)yahoo(dot)com> writes:
> I need a feature that would me allow to debug "live" the work of an application together with a PostgreSQL database.
> I think that if I would be able to define a session variable that is visible in pg_stat_activity (or in other system view, table or function) I would be more than happy.
application_name is meant for that ...
regards, tom lane