Re: feature request - datum_compute_size and datum write_should be public

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: feature request - datum_compute_size and datum write_should be public
Дата
Msg-id 1328144828-sup-2169@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: feature request - datum_compute_size and datum write_should be public  (Jim Nasby <jim@nasby.net>)
Ответы Re: feature request - datum_compute_size and datum write_should be public  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Excerpts from Jim Nasby's message of mié feb 01 20:47:05 -0300 2012:

> I'm not certain this in what  Pavel is referring to, but I have often wished that I could pass something like an
arrayinto a function and have the function tell me exactly how much space that would require on-disk. It's pretty easy
tofigure that out for things like varchar and numeric, but doing so for arrays or composite types requires pretty
detailedknowledge of PG internals. 

I think you can just use pg_column_size on a composite datum (such as a
ROW() construct) and it will give you the right number.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: heap_tuple_needs_freeze false positive
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Progress on fast path sorting, btree index creation time