X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 720D3D7152 for ; Fri, 2 Sep 2005 01:19:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64493-10 for ; Fri, 2 Sep 2005 04:19:34 +0000 (GMT) Received: from venus.amiindia.co.in (unknown [203.199.198.234]) by svr1.postgresql.org (Postfix) with ESMTP id 85769D711E for ; Fri, 2 Sep 2005 01:19:19 -0300 (ADT) Received: from amiindiahjwbgh ([10.0.0.205]) (authenticated bits=0) by venus.amiindia.co.in (8.12.10/8.12.11) with ESMTP id j824H1PA002962; Fri, 2 Sep 2005 09:47:02 +0530 Message-ID: <003501c5af76$78257690$cd00000a@amiindiahjwbgh> From: "sandhya" To: "Michael Fuhr" , "Askar Zaidi" Cc: "postgre" References: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh> <20050901134633.GA27624@winnie.fuhr.org> Subject: Re: Reg:Connection Object Date: Fri, 2 Sep 2005 09:56:19 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.049 required=5 tests=[AWL=-0.001, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/10 X-Sequence-Number: 18747 I am using normal C-Functions,In one function i will make connection with the database.This connection object i need to get in my all other functions where i will do the other operations like creating a table ,altering a table in their respective functions.So..There is no need for me to ask the user to pass the user ,password,database name in all other functions.Pls suggest me -Sandhya ----- Original Message ----- From: "Michael Fuhr" To: "sandhya" Cc: "postgre" Sent: Thursday, September 01, 2005 7:16 PM Subject: Re: [ADMIN] Reg:Connection Object > On Thu, Sep 01, 2005 at 04:12:17PM +0530, sandhya wrote: > > How to pass connection object across the functions.So that there > > is no need for me to connect to postgres database in each and every > > function. > > What functions? You didn't say what language you're using, nor > whether you're writing client-side code or server-side code. > > BTW, this thread seems off-topic for pgsql-admin because it doesn't > concern PostgreSQL administration. You're more likely to get help > in pgsql-interfaces or pgsql-general, or in one of the more specific > lists like pgsql-jdbc or pgsql-php if you're using one of those > interfaces. > > -- > Michael Fuhr