Re: Performance of column order - Mailing list pgsql-general

From Tom Lane
Subject Re: Performance of column order
Date
Msg-id 11609.1019139889@sss.pgh.pa.us
Whole thread Raw
In response to Performance of column order  (Egon Sommer <Service@Sommer-Maschinenbau.de>)
List pgsql-general
Egon Sommer <Service@Sommer-Maschinenbau.de> writes:
> Should I use length-variable colums like TEXT, BLOB,... alfter length-static colums like INTEGER, BOOLEAN, ...?

There is some marginal advantage to that, but I wouldn't recommend
contorting your application to do it.  In particular, AFAIR it only
helps in a row that has no NULLs.  (Check the heap_getattr code for
the gory details.)

> Is there a advantage to create a separate table for BLOBS and TEXT joining the main table about a primary key?

No ... TOAST more or less does that for you.

            regards, tom lane

pgsql-general by date:

Previous
From: Vaclav Kulakovsky
Date:
Subject: How to find backend which locking ?
Next
From: Michael Loftis
Date:
Subject: Re: freebsd install