Tim Goodaire tgoodair
Wed Aug 17 21:02:59 PDT 2005
On Wed, Aug 17, 2005 at 12:43:23PM -0700, Marc Munro wrote:
> Brad, thank you so much for your response.  I have more information but
> still no solution.
> 
> In response to Brad's suggestions:
> 
> 1) pg_stat_activity
> Interesting.  There is an idle in transaction process from the provider.
> Shutting down and restarting the database resulted in a new session with
> the same status.  This appears to be something to do with slony.

Brad wasn't completely clear here. Idle in transaction entries in
pg_stat_activity are ok, as long as they aren't long-running. 

You may want to create a slony user for slony to use to connect. This
way, pg_stat_activity will tell you for sure if slony is responsible for
these connections.

ie.

test=# SELECT * FROM pg_stat_activity;
 datid | datname | procpid | usesysid | usename  | current_query | query_start          
 -------+---------+---------+----------+----------+---------------+-------------------------------
25422 | test  |   11999 |      101 | slony    | <IDLE>        | 2005-08-17 15:58:56.40807-04
25422 | test  |   12001 |      101 | slony    | <IDLE>        | 2005-08-17 15:58:56.405501-04
25422 | test  |   11899 |        1 | postgres | <IDLE>        | 2005-08-17 15:57:46.153472-04
25422 | test  |   12002 |      101 | slony    | <IDLE>        | 2005-08-17 15:58:56.381903-04
25422 | test  |   12003 |      101 | slony    | <IDLE>        | 2005-08-17 15:55:50.770118-04
25422 | test  |   12004 |      101 | slony    | <IDLE>        | 2005-08-17 15:59:03.705546-04
25422 | test  |   12024 |      101 | slony    | <IDLE> 		| 2005-08-17 15:58:55.731058-04
25422 | test  |   12142 |        1 | postgres | <IDLE> 		| 2005-08-17 15:59:03.279878-04
(8 rows)


-- 
Tim Goodaire    416-673-4126    tgoodair at ca.afilias.info
Database Administrator, Afilias Canada Corp.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://gborg.postgresql.org/pipermail/slony1-general/attachments/20050817/e6078f36/attachment.bin


More information about the Slony1-general mailing list