Re: How to find greatest record before known values fast

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Cc: "Jim Nasby" <Jim(dot)Nasby(at)bluetreble(dot)com>, "PostgreSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to find greatest record before known values fast
Date: 2014-10-03 20:28:27
Message-ID: E76BD55BA17A47CA8748841291256F2E@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

Thank you for explanations.

> the char type pads out the fields on disk.

It looks like you wrote that char takes more disk space.

from

http://www.pgcon.org/2013/schedule/attachments/269_tour-of-postgresql-data-types.pdf

page 28:

Unlike many
databases, char(n) is NOT stored as afixed-sizedfield
in Postgres. It is treated exactly the sameas
varchar(n)except for being padded

So char type does not take more space than varchar.

Andrus.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2014-10-03 20:45:23 Re: How to find greatest record before known values fast
Previous Message Israel Brewster 2014-10-03 19:24:31 Processor usage/tuning question