Re: Selecting a constant question

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org, Larry McGhaw <lmcghaw(at)connx(dot)com>
Subject: Re: Selecting a constant question
Date: 2007-06-11 22:27:18
Message-ID: 20070611222718.GD24760@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-06-11 22:28:37 Re: Selecting a constant question
Previous Message Dann Corbit 2007-06-11 22:18:33 Re: Selecting a constant question