pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: sandhya <sandhyar@amiindia.co.in>
Cc: Askar Zaidi <askar@mail.nplindia.ernet.in>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: Reg:Connection Object
Date: Thu, 1 Sep 2005 23:58:55 -0600
Message-ID: <20050902055855.GA60139@winnie.fuhr.org> (raw)
In-Reply-To: <005901c5af82$23e95270$cd00000a@amiindiahjwbgh>
References: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh>
	<20050901134633.GA27624@winnie.fuhr.org>
	<003501c5af76$78257690$cd00000a@amiindiahjwbgh>
	<20050902051613.GB59734@winnie.fuhr.org>
	<005901c5af82$23e95270$cd00000a@amiindiahjwbgh>

On Fri, Sep 02, 2005 at 11:19:53AM +0530, sandhya wrote:
> In case of multiple users what will happen?
> Each must have different connection objects right!

That's why global variables are bad.  But what's wrong with passing
a PGconn * to various functions?  If that's a problem in your
application then please explain why; it's still not clear what
difficulties you're having.  Perhaps it would help if you posted a
simple but complete example program that shows what you're trying
to do.

As I mentioned before, this thread is off-topic for pgsql-admin;
it would be more appropriate in pgsql-interfaces or pgsql-general.

-- 
Michael Fuhr



view thread (7+ messages)  latest in thread

Message-ID: <20050902055855.GA60139@winnie.fuhr.org>
Permalink:  ../20050902055855.GA60139@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050902055855.GA60139@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, sandhyar@amiindia.co.in, askar@mail.nplindia.ernet.in
  Subject: Re: Reg:Connection Object
  In-Reply-To: <20050902055855.GA60139@winnie.fuhr.org>
  References: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh> <20050901134633.GA27624@winnie.fuhr.org> <003501c5af76$78257690$cd00000a@amiindiahjwbgh> <20050902051613.GB59734@winnie.fuhr.org> <005901c5af82$23e95270$cd00000a@amiindiahjwbgh> <20050902055855.GA60139@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox