Re: Performance of column order

From: Tom Lane <tgl(at)sss(dot)pgh(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 14:24:49
Message-ID: 11609.1019139889@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Egon Sommer <Service(at)Sommer-Maschinenbau(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Loftis 2002-04-18 14:25:21 Re: freebsd install
Previous Message Vaclav Kulakovsky 2002-04-18 14:00:25 How to find backend which locking ?