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

From Gregory Stark
Subject Re: Selecting a constant question
Date
Msg-id 87ps42nugp.fsf@oxford.xeocode.com
Whole thread Raw
In response to Selecting a constant question  ("Dann Corbit" <DCorbit@connx.com>)
Responses Re: Selecting a constant question  ("Dann Corbit" <DCorbit@connx.com>)
List pgsql-hackers
"Dann Corbit" <DCorbit@connx.com> writes:

> SELECT 1  FROM test.dbo.a_003 
>
> gets about 60,000 records per second
>
> SELECT '1'  FROM test.dbo.a_003 
>
> gets about 600 records per second.
>
> The cause is that postgres describes the return column as "unknown"
> length 65534 in the 2nd case.

Wait, back up. How does this cause it to go slower?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Selecting a constant question
Next
From: "Dann Corbit"
Date:
Subject: Re: Selecting a constant question