Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Hackers > connections
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4481 of 4687
Post > Topic >>

connections

by Jon.Roberts@[EMAIL PROTECTED] ("Roberts, Jon") Apr 18, 2008 at 01:30 PM

With pgAdmin, every window is a new connection to the database and this
alone wastes resources when you have lots of users.=20

select count(distinct usename) as unique_users,=20
       count(*) as total_count,
       count(*)/cast(count(distinct usename) as float8)=20
  from pg_stat_activity;

For our system, we currently have 9 distinct users connected with a
total of 30 connections which translates to over 3 connections per user.
This makes sense because pgAdmin creates 1 connection for the main UI, 1
connection to the Maintenance database, and 1 connection per SQL window.


Now my system is actually running Greenplum which means I have 16 more
(17 total) connections per user's connection because each segment host
running gets a connection.  So my measly 9 users actually are consuming
510 database connections!

EnterpriseDB now has a similar product to Greenplum
http://www.enterprisedb.com/community/projects/gridsql.do
and I'm
assuming it does the same thing.  It certainly does look that way based
on the fact both products make use of parallel execution with shared
nothing parallel database servers.

I would greatly prefer if pgAdmin only created a connection if it needed
to.  If a query window is busy and a user attempts to execute SQL while
the other window is busy, then it would create a new session.  A simpler
solution would be only to allow one connection per pgAdmin instance.=20=20

Is this even on the radar for EnterpriseDB or pgAdmin users?  Is this
even considered a problem?


Jon

--=20
Sent via pgadmin-hackers mailing list (pgadmin-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
 




 4 Posts in Topic:
connections
Jon.Roberts@[EMAIL PROTEC  2008-04-18 13:30:29 
Re: connections
dpage@[EMAIL PROTECTED]   2008-04-20 18:00:27 
Re: connections
dpage@[EMAIL PROTECTED]   2008-04-21 07:27:40 
Re: connections
Jon.Roberts@[EMAIL PROTEC  2008-04-21 07:38:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:35:48 CDT 2008.