| От | Tom Lane |
|---|---|
| Тема | Re: Optimizer not using index on 120M row table |
| Дата | |
| Msg-id | 24271.1049774575@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Optimizer not using index on 120M row table ("Jim C. Nasby" <jim@nasby.net>) |
| Ответы |
Re: Optimizer not using index on 120M row table
|
| Список | pgsql-general |
"Jim C. Nasby" <jim@nasby.net> writes: > On Mon, Apr 07, 2003 at 11:51:17PM -0400, Tom Lane wrote: >> or just declare project_id to be integer (hint: the space savings are >> completely illusory in this example, anyway, because of alignment >> requirements). > Hrm... where can I find more info about that? The authoritative reference is pg_type.typalign ... see http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/catalog-pg-type.html In this example, your next field requires integer alignment, so the two bytes "saved" by using smallint disappear into the padding. regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера