crate icon indicating copy to clipboard operation
crate copied to clipboard

System view for open sessions

Open hlcianfagna opened this issue 1 year ago • 2 comments

Problem Statement

When debugging issues with connection pooling, connections in sys.nodes allows to see the number of open connections, but there are no further details.

Possible Solutions

It would be nice to have a system view for open sessions which could maybe show handling node, client IP address, user name, time opened, last command sent, session settings, and SSL status.

Considered Alternatives

No response

hlcianfagna avatar Oct 20 '23 15:10 hlcianfagna

Hi Hernan,

I like the idea. Is there any blueprint for that, for example how PostgreSQL does it?

With kind regards, Andreas.

amotl avatar Oct 20 '23 16:10 amotl

Is there any blueprint for that, for example how PostgreSQL does it?

Hi, yes, maybe this could be based on pg_stat_activity

hlcianfagna avatar Oct 20 '23 16:10 hlcianfagna