pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Clift <justin@postgresql.org>
To: Matt Mello <alien@spaceship.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: 1 char in the world
Date: Wed, 29 Jan 2003 20:50:00 +1030
Message-ID: <3E37AAD0.8010606@postgresql.org> (raw)
In-Reply-To: <3E37733D.90205@spaceship.com>
References: <3E37733D.90205@spaceship.com>

Matt Mello wrote:
<snip>
> This naturally led me to another question.  How do TEXT, "char", and 
> BOOLEAN compare for storing t/f values.  The test results I saw were 
> surprising.
> 
> Test query=
>  "char"/TEXT: explain analyze select count(*) from table where bool='Y';
>  boolean:    explain analyze select count(*) from table where bool=true;
> Table size (see above)
> Performance averages:
>  TEXT    24ms
>  BOOLEAN 28ms
> "char"   17ms

Hi Matt,

This is interesting.  As a thought, would you be ok to run the same test 
using int4 and int8 as well?

That would probably round out the test nicely.

:)

Regards and best wishes,

Justin Clift

-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi




view thread (7+ messages)  latest in thread

Message-ID: <3E37AAD0.8010606@postgresql.org>
Permalink:  ../3E37AAD0.8010606@postgresql.org/
Also on:    postgresql.org/message-id/3E37AAD0.8010606@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: justin@postgresql.org, alien@spaceship.com
  Subject: Re: 1 char in the world
  In-Reply-To: <3E37AAD0.8010606@postgresql.org>
  References: <3E37733D.90205@spaceship.com> <3E37AAD0.8010606@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox