When connectiong to database my application needs to determine how many connections is currently established to Postgres server. Any idea which query I should use ? I can create temporary table at startup of each connection. But how to count the number of temporary tables created by all applications ? Using Postgres 8.1 Andrus