Don't run a separate query for the database description for each database,
authormha <mha@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 18 Sep 2008 09:12:51 +0000 (09:12 +0000)
committermha <mha@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 18 Sep 2008 09:12:51 +0000 (09:12 +0000)
commit14fed4b4eb3f5284f423af0fa2bc59d311037bcb
treeb04484bd1a0ad667bb7f9c3cfbda06ad21e52cd5
parent9c9f6fa819f6f0a2c3297099d976370ec1fa6f82
Don't run a separate query for the database description for each database,
instead fold it into the main query.

Also, don't refresh the default schema until actually connecting to the
database - previous code ran it in the maintenance database once for each
database in the system, and then again in the actual database after
connection.

Fixes a large performance regression on systems with a very large number
of databases.

git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7475 a7884b65-44f6-0310-8a51-81a127f17b15
pgadmin/schema/pgDatabase.cpp