Re: Two tables or three?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Two tables or three?
Дата
Msg-id 11826.1130607966@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Two tables or three?  (James Cloos <cloos@jhcloos.com>)
Ответы Re: Two tables or three?
Список pgsql-sql
James Cloos <cloos@jhcloos.com> writes:
> I'm designing a schema for an app that requires two large blobs per
> row.  Given that querying does not hit those, I presume it is
> beneficial to move the blobs out of the main table.

You shouldn't contort your schema artificially in order to do that.

Postgres automatically stores wide fields out-of-line, so if "large"
means "more than a couple KB after compression" then the system will do
this behind the scenes and there's no need for you to do it.  See
http://developer.postgresql.org/docs/postgres/storage-toast.html
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Aggregate versus lineitem report
Следующее
От: James Cloos
Дата:
Сообщение: Re: Two tables or three?