Re: [HACKERS] Convert PGconn, PGresult to opaque types? - Mailing list pgsql-hackers

From Goran Thyni
Subject Re: [HACKERS] Convert PGconn, PGresult to opaque types?
Date
Msg-id 35E161AB.7DC7012A@bildbasen.se
Whole thread Raw
In response to Re: [HACKERS] Convert PGconn, PGresult to opaque types?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [INTERFACES] Re: [HACKERS] Convert PGconn, PGresult to opaque types?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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

pgsql-hackers by date:

Previous
From: Andreas Zeugswetter
Date:
Subject: AW: [HACKERS] What I'm working on
Next
From: David Hartwig
Date:
Subject: Re: [HACKERS] 6.4 Aggregate Bug