Re: contrib/intarray/_int_gist.c

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: contrib/intarray/_int_gist.c
Дата
Msg-id e10afp$1tgt$1@news.hub.org
обсуждение исходный текст
Ответ на contrib/intarray/_int_gist.c  (维 姜 <jw.pgsql@sduept.com>)
Ответы Re: contrib/intarray/_int_gist.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
<jw.pgsql@sduept.com> wrote
> In "g_int_compress" :
>
>
>  int                *dr;
>   ...
>  memmove((void *) &dr[cand - 1], (void *) &dr[cand + 1], (len - cand -
> 1) * sizeof(int));
>
> Should be
>
>  int32 *dr;
>   ...
>  memmove((void *) &dr[cand - 1], (void *) &dr[cand + 1], (len - cand -
> 1) * sizeof(int32));
>

AFAICS, int32 and int are exactly the same thing in PostgreSQL. For the
machine int is not 32 bits long, PostgreSQL won't even run.

Regards,
Qingqing

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

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: BUG #2371: database crashes with semctl failed error
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: NLS vs error processing, again (was Re: Composite Type