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

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

> > Oh, you have the length information for each datum all right.  It's on
> > the first four bytes of it.
> 
> Sure, but when I bind to a grid, I need to know a-priori how big the
> biggest returned instance can be.  Reading the entire data set twice to
> learn the size of a constant seems rather conceptually odd to me.

Did you read up on typmod already?  I think that's part of the info sent
down in the query response.

-- 
Alvaro Herrera                         http://www.flickr.com/photos/alvherre/
"No single strategy is always right (Unless the boss says so)"                                                 (Larry
Wall)


pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: Selecting a constant question
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Selecting a constant question