Re: Selecting a constant question - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Selecting a constant question
Date
Msg-id 20070611224337.GE24760@alvh.no-ip.org
Whole thread Raw
In response to Re: Selecting a constant question  ("Dann Corbit" <DCorbit@connx.com>)
Responses Re: Selecting a constant question  ("Dann Corbit" <DCorbit@connx.com>)
Re: Selecting a constant question  ("Larry McGhaw" <lmcghaw@connx.com>)
List pgsql-hackers
Dann Corbit wrote:

> If the server bound the data as UNICODE, then it will tell me
> UNICODE(3).  I know how big this will be.
> 
> In the worst case scenario it will fit in 3*4 = 12 bytes.
> 
> If the server is built without UNICODE enabled, then it will definitely
> fit in 3 bytes.

Unless it's some other multibyte encoding.  And nowadays, the server is
always "unicode enabled".  The stuff sent down the wire is unicode or
not depending on a configuration parameter.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Got no response last time on setsockopt post, so I thought I would reiterate.
Next
From: Tom Lane
Date:
Subject: Re: Selecting a constant question