X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 689F5D1B57B for ; Sat, 20 Sep 2003 22:42:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 43511-02 for ; Sat, 20 Sep 2003 19:42:19 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 91922D1B567 for ; Sat, 20 Sep 2003 19:42:18 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8KMgHiP000265; Sat, 20 Sep 2003 18:42:17 -0400 (EDT) To: Mike Mascari Cc: Richard Huxton , Lista dyskusyjna pgsql-general Subject: Re: PG + PHP, was Re: Zend survey result about dbms... 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> Comments: In-reply-to Mike Mascari message dated "Sat, 20 Sep 2003 18:37:51 -0400" Date: Sat, 20 Sep 2003 18:42:17 -0400 Message-ID: <264.1064097737@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/1400 X-Sequence-Number: 49619 Mike Mascari 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