Skip site navigation (1) Skip section navigation (2)

keeping track of connections

From: Brett McCormick <brett(at)work(dot)chicken(dot)org>
To: pgsql-hackers(at)hub(dot)org
Subject: keeping track of connections
Date: 1998-06-03 03:28:06
Message-ID: 13684.49862.833361.460921@web0.speakeasy.org (view raw or flat)
Thread:
Lists: pgsql-hackers
I would love a way to keep track of the connections/attempted
connections to the postmaster.  I'm thinking that when the postmaster
accept()s a connection, it can just insert a record into a table
(system catalog or not) with the information, which can be updated
after the authentication succeeds/fails or whatnot.

something like 'smbstatus' for the samba system.

So, my question is: how should I go about doing this?  should I look
into SPI, which I know nothing about?  or, what..  I don't think the
catalog cache stuff needs to be changed, it isn't as if this info
needs to be immediately accessible.

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-06-03 04:05:48
Subject: Re: [HACKERS] dump/reload
Previous:From: Brett McCormickDate: 1998-06-03 03:12:37
Subject: Re: [HACKERS] dump/reload

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group