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" <[EMAIL PROTECTED]> To: "sandhya" <[EMAIL PROTECTED]> Cc: "postgre" <pgsql-admin@postgresql.org> 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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match