pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: sid@etsy.com
Cc: pgsql-performance@postgresql.org
Subject: Re: How can fixed and variable width columns perform similarly?
Date: Fri, 27 Apr 2007 12:25:57 -0400
Message-ID: <15873.1177691157@sss.pgh.pa.us> (raw)
In-Reply-To: <50444.209.51.183.100.1177687911.squirrel@mailbox.etsy.com>
References: <50444.209.51.183.100.1177687911.squirrel@mailbox.etsy.com>

"Siddharth Anand" <sid@etsy.com> writes:
> How can a field that doesn't have a limit like "text" perform similarly to
> char varying(128), for example? At some point, we need to write data to
> disk. The more data that needs to be written, the longer the disk write
> will take, especially when it requires finding free sectors to write to.

What's your point?  If you're not going to put more than 128 characters
in the field, there's no difference in the amount of data involved.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <15873.1177691157@sss.pgh.pa.us>
Permalink:  ../15873.1177691157@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15873.1177691157@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sid@etsy.com
  Subject: Re: How can fixed and variable width columns perform similarly?
  In-Reply-To: <15873.1177691157@sss.pgh.pa.us>

* 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