pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Mascari <mascarm@mascari.com>
Cc: Richard Huxton <dev@archonet.com>
Cc: Lista dyskusyjna pgsql-general <pgsql-general@postgresql.org>
Subject: Re: PG + PHP, was Re: Zend survey result about dbms...
Date: Sat, 20 Sep 2003 18:42:17 -0400
Message-ID: <264.1064097737@sss.pgh.pa.us> (raw)
In-Reply-To: <3F6CD6BF.5030206@mascari.com>
References: <000501c37e9e$0ecffc70$4701a8c0@marek>
	<20022.1063984707@sss.pgh.pa.us>
	<200309201248.54484.dev@archonet.com>
	<23474.1064069400@sss.pgh.pa.us>
	<3F6CD248.8040006@mascari.com>
	<29970.1064096941@sss.pgh.pa.us>
	<3F6CD6BF.5030206@mascari.com>

Mike Mascari <mascarm@mascari.com> writes:
> Actually, I meant that setenv() and getenv() would only be used to
> store the memory address of a privately manipulated variable map. I
> did not mean that it should actually be used to store and retrieve the
>  variables themselves. If there is already a way to palloc() memory
> using a key that lives for the lifetime of a backend, then that's
> obviously the way to go.

Plain old static pointer variable would do fine ... look for instance at
the remote-connections table in contrib/dblink/dblink.c.

			regards, tom lane



view thread (7+ messages)

Message-ID: <264.1064097737@sss.pgh.pa.us>
Permalink:  ../264.1064097737@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/264.1064097737@sss.pgh.pa.us

 · 

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-php@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mascarm@mascari.com, dev@archonet.com, pgsql-general@postgresql.org
  Subject: Re: PG + PHP, was Re: Zend survey result about dbms...
  In-Reply-To: <264.1064097737@sss.pgh.pa.us>
  References: <000501c37e9e$0ecffc70$4701a8c0@marek> <20022.1063984707@sss.pgh.pa.us> <200309201248.54484.dev@archonet.com> <23474.1064069400@sss.pgh.pa.us> <3F6CD248.8040006@mascari.com> <29970.1064096941@sss.pgh.pa.us> <3F6CD6BF.5030206@mascari.com> <264.1064097737@sss.pgh.pa.us>

* 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