Re: Performance of column order

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance of column order
Дата
Msg-id 11609.1019139889@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Performance of column order  (Egon Sommer <Service@Sommer-Maschinenbau.de>)
Список 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 по дате отправления:

Предыдущее
От: Vaclav Kulakovsky
Дата:
Сообщение: How to find backend which locking ?
Следующее
От: Michael Loftis
Дата:
Сообщение: Re: freebsd install