dbTalk Databases Forums  

Another 'db session' question...

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Another 'db session' question... in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Taber, Mark
 
Posts: n/a

Default Another 'db session' question... - 08-11-2004 , 09:42 AM






First, thanks for all your responses. The programmers have yet another
question. We will be connecting to a single pg db from our intranet
application (web-based). Each instance of this application will log on to
the database using identical user id's and passwords (we have a couple of
network and workstation authentications above this). Each application
instance will have its own db session, correct? (That is, because they will
all be connecting to the pg db with the same user id and password, they
won't share a connection because of this fact, will they?)



Again, many thanks



Mark Taber

State of California

Department of Finance

Infrastructure & Architecture Unit

916.323.3104 x2945





Reply With Quote
  #2  
Old   
Scott Marlowe
 
Posts: n/a

Default Re: Another 'db session' question... - 08-11-2004 , 11:56 AM






On Wed, 2004-08-11 at 08:42, Taber, Mark wrote:
Quote:
First, thanks for all your responses. The programmers have yet
another question. We will be connecting to a single pg db from our
intranet application (web-based). Each instance of this application
will log on to the database using identical user id’s and passwords
(we have a couple of network and workstation authentications above
this). Each application instance will have its own db session,
correct? (That is, because they will all be connecting to the pg db
with the same user id and password, they won’t share a connection
because of this fact, will they?)
Correct. As long as you're not using some form of connection pooling or
reuse, each web client will have their own connection.

Note that if you're using php, I recommend avoiding pg_pconnect like the
plague, unless you know very specifically how to tune
apache/php/postgresql to handle the increased number of connections that
will remain forever open.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
  #3  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: Another 'db session' question... - 08-11-2004 , 12:33 PM



Taber, Mark wrote:
Quote:
First, thanks for all your responses. The programmers have yet another
question. We will be connecting to a single pg db from our intranet
application (web-based). Each instance of this application will log on to
the database using identical user id's and passwords (we have a couple of
network and workstation authentications above this). Each application
instance will have its own db session, correct? (That is, because they will
all be connecting to the pg db with the same user id and password, they
won't share a connection because of this fact, will they?)
Right, the all get new connections. Also, because you are using the
web, the connections will be new for each rendered page probably.

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.