multiple db connections

From: "John Frailey" <john(at)ecstreet(dot)com>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: multiple db connections
Date: 1999-03-08 18:58:06
Message-ID: 008801be6995$99e41da0$cd5f7ed1@dmarc.ecstreet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

We are trying to port our pure java e-commerce software to postgres. I am using database pooling with jdbc during an init stage of the main servlet that dishes out the html content to the users. (we must use pooling, because it takes too darn long to get a connection, and we need our web pages to respond quickly)

My problem is that we use multiple databases per web request. With other db's, I can make a connection to a central db, and then select .. from <database>.<table> and make sure permissions are such, that I can hop databases with just one connection I get from the pool.

I can't find a similiar technique in postgres. Am I missing a way to hop databases w/o having to create a new connection ?? It is adding 5x the performance hit if I have to get a NEW connection everytime I need to hop. I hate to have to create a connection pool for every database we have on our box. (worried about memory consumption)

Thanks ....

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ulf Mehlig 1999-03-08 19:04:17 Re: [INTERFACES] pgaccess: window size and column resizing
Previous Message Constantin Teodorescu 1999-03-08 17:37:26 Re: [INTERFACES] I can't use pgaccess !!