Hi,

I've been using pgAdmin for a long time but over time it has become more and 
more frustrating to use it.
It's a great application that performs everything I need, however, when first 
connecting to servers with many databases, each with many tables, views and 
other objects (over a VPN) it can often take 20-30 seconds while pgAdmin is 
hung before it completes running all the prefetch queries.

I've analyzed its logs and it appears that some queries are the main culprit.


For example (15-20 seconds to run this):
SELECT oid, format_type(oid, NULL) AS typname FROM pg_type

We have quite a few entries there (every toasted table, every view and every 
table have a couple of entries there).
SELECT count(*) AS typname FROM pg_type
35468

Also, this same query gets apparently issued twice:
2010-01-13 09:44:15 QUERY : Set query (pgdb:5432): SELECT oid, format_type(oid, 
NULL) AS typname FROM pg_type
2010-01-13 09:44:31 QUERY : Set query (pgdb:5432): SELECT oid, format_type(oid, 
NULL) AS typname FROM pg_type
2010-01-13 09:44:52 STATUS : Restoring previous environment... (37.31 secs)

Causing the application a long time to "connect".
I was wondering if there's either a way to bring a partial subset of the data 
(is all of it needed?) or perhaps fetch it lazily (on demand).

Thanks,
       Sefer.




    

                                          
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/196390708/direct/01/

Reply via email to