Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id IAA13148 for postgres-redist; Fri, 19 Aug 1994 08:52:52 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199408191552.IAA13148@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from umr.edu (hermes.cc.umr.edu [131.151.1.68]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id IAA13138 for ; Fri, 19 Aug 1994 08:52:29 -0700 Received: from eec.umr.edu (umrgec7.eec.umr.edu [192.65.97.43]) via SMTP by hermes.cc.umr.edu (8.6.9/E.3.01) id KAA14916; Fri, 19 Aug 1994 10:52:26 -0500 Received: from umrgec8.eec.umr.edu (umrgec8.eec.umr.edu [192.65.97.44]) via ESMTP by umrgec7.eec.umr.edu (8.6.9/D.3.00) id LAA07780; Fri, 19 Aug 1994 11:01:00 -0500 From: Quandt Brian Received: from (quandt@localhost) by umrgec8.eec.umr.edu (8.6.9/M.3.01) id KAA03823; Fri, 19 Aug 1994 10:51:26 -0500 Message-Id: <199408191551.KAA03823@umrgec8.eec.umr.edu> Subject: performance and postgres To: postgres@postgres.Berkeley.EDU Date: Fri, 19 Aug 1994 10:51:25 -0500 (CDT) Cc: quandt@eec.umr.edu (Quandt Brian) X-Mailer: ELM [version 2.4 PL21] Content-Type: text Content-Length: 867 Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Fri, 19 Aug 94 08:52:52 -0700 Resent-XMts: smtp Just curious. What is the performance difference between writing multiple programs to issue multiple postgres queries, ie attaching to the database then detaching, versus writing one program that attaches to the database does all the queries then detaches? The reason that Im asking is that I'd like to have people access postgres through things like perl scripts but I'm concerend about the performance of using pgperl since each script will attache then detach on exiting the perl script. Another solution I thought about is to have a daemon that is attached to a named pipe that the perl scripts communicate with. This way the cost of opening/closing the database is not incurred, however it does present some problems on multiple users accessing the db, ie there needs to be a locking mechanism on the pipe. Any suggestions would be helpful Brian quandt ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU" If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ==============================================================================