From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Service(at)Sommer-Maschinenbau(dot)de |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Performance of column order |
Date: | 2002-04-18 15:27:59 |
Message-ID: | 200204181527.g3IFRxL09772@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Egon Sommer wrote:
> Hallo!
>
> Do anybody know if the order of the columns in a table has affect
> on the performance?
>
> Should I use length-variable colums like TEXT, BLOB,... alfter
> length-static colums like INTEGER, BOOLEAN, ...?
It is very slightly faster to have variable length stuff after fixed length
fields.
> Is there a advantage to create a separate table for BLOBS and
> TEXT joining the main table about a primary key?
Probably, though TOAST stores large stuff in backup tables anyway, so
there is probably little difference.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Atkins | 2002-04-18 15:55:41 | Re: C++ and Postgres |
Previous Message | Oliver Elphick | 2002-04-18 15:27:14 | Re: Help: a rare problem with backing and restoring |