Received: from bildbasen.se (bs1.bildbasen.kiruna.se [193.45.225.97]) by hub.org (8.8.8/8.7.5) with SMTP id IAA15527 for ; Mon, 24 Aug 1998 08:51:26 -0400 (EDT) Received: (qmail 4879 invoked from network); 24 Aug 1998 12:50:52 -0000 Received: from guevara.bildbasen.kiruna.se (HELO bildbasen.se) (goran@193.45.225.110) by bs1.bildbasen.kiruna.se with SMTP; 24 Aug 1998 12:50:52 -0000 Sender: goran Message-ID: <35E161AB.7DC7012A@bildbasen.se> Date: Mon, 24 Aug 1998 14:50:51 +0200 From: Goran Thyni Organization: JMS Bildbasen i Kiruna AB X-Mailer: Mozilla 4.05 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: Bruce Momjian CC: Tom Lane , pgsql-interfaces@postgreSQL.org, pgsql-hackers@postgreSQL.org Subject: Re: [HACKERS] Convert PGconn, PGresult to opaque types? References: <199808240121.VAA29023@candle.pha.pa.us> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Bruce Momjian wrote: > > Basically this would force applications to use the accessor functions > > as recommended in the documentation, and not touch fields of a PGconn > > object directly. (Ditto for PGresult.) > > I am scared about external stuff like php. If they use it, and we > release something that doesn't work with their stuff, we are cooked > until they upgrade. > > Not really sure what the advantage would be, aside from cleanliness. The cleaness allows us to change the interals without breaking "external stuff". I think Tom is aiming for thread-safeness which can't be done as long as external stuff insists on accessing global structs inside libpq. Sometimes we have to break thing to make them work better. regards, -- --------------------------------------------- Göran Thyni, sysadm, JMS Bildbasen, Kiruna