Re: Last round (I think) of FE/BE protocol changes - Mailing list pgsql-interfaces

From Peter Eisentraut
Subject Re: Last round (I think) of FE/BE protocol changes
Date
Msg-id Pine.LNX.4.44.0305140039580.1617-100000@peter.localdomain
Whole thread Raw
In response to Last round (I think) of FE/BE protocol changes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Tom Lane writes:

> Let's use int16 (2-byte integers) as format selector codes; this seems a
> reasonable compromise between bandwidth and flexibility.  As of 7.4 the
> only supported values will be 0 = text and 1 = binary, but future versions
> can add more codes.

I think the "future versions" in this are going to be making this choice a
datatype-specific session state.  How can we make this transition
smoother?  Maybe 0 can be default, 1 text, 2 binary?  Or maybe we should
implement a simple version of the session-state system right now with only
two predefined transform groups for each type?  Then we don't need to send
a format to the server at all, and the messages to the client would
contain an OID field in the RowDescription message.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: Last round (I think) of FE/BE protocol changes
Next
From: Stéphane Pinel
Date:
Subject: PQhost