Re: Debugging features needed - Mailing list pgsql-general

From Michael Lewis
Subject Re: Debugging features needed
Date
Msg-id CAHOFxGrWa4UCA6ox4Ly8bj1+pBE03srA7NQ9TbdHwSuTX+9BKQ@mail.gmail.com
Whole thread Raw
In response to Re: Debugging features needed  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Debugging features needed  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Re: Debugging features needed  (Boboc Cristi <bobocc@yahoo.com>)
List pgsql-general
For my purposes, app name isn't long enough so we put a comment at the start of every SQL that has a unique ID generated in the application. This ensures that we can tell one connection apart from another even when both are coming from the same feature/action (applicationName is set to this) even using connection pooling. Before, we had different requests reusing the same pid of course and if they happened to have the same appName, we didn't know it was a new process on app side.

We also log that same request ID to NewRelic and when an app process needs to use multiple databases, it links those for research of events after the fact as well.

I would be interested to hear what others are doing.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Debugging features needed
Next
From: Vijaykumar Jain
Date:
Subject: Re: Debugging features needed