Re: Fixed length data types issue
От | Bruce Momjian |
---|---|
Тема | Re: Fixed length data types issue |
Дата | |
Msg-id | 200609081948.k88Jm4O13157@momjian.us обсуждение исходный текст |
Ответ на | Re: Fixed length data types issue (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
Tom Lane wrote: > Bruce Momjian <bruce@momjian.us> writes: > > No one has mentioned that we page value on disk to match the CPU > > alignment. This is done for efficiency, but is not strictly required. > > Well, it is unless you are willing to give up support of non-Intel CPUs; > most other popular chips are strict about alignment, and will fail an > attempt to do a nonaligned fetch. > > The only way we could pack stuff without alignment is to go over to the > idea that memory and disk representations are different --- where in > this case the "conversion" might just be a memcpy to a known-aligned > location. The performance costs of that seem pretty daunting, however, > especially when you reflect that simply stepping over a varlena field > would require memcpy'ing its length word to someplace. Agreed, but I thought I would point it out. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-hackers по дате отправления: