Re: problem with realizing gist index

Поиск
Список
Период
Сортировка
От Nicolas Barbier
Тема Re: problem with realizing gist index
Дата
Msg-id b0f3f5a10912310450h1866d49bxc5514e163e9c85ae@mail.gmail.com
обсуждение исходный текст
Ответ на problem with realizing gist index  (Sergej Galkin <sergej.galkin@gmail.com>)
Список pgsql-hackers
2009/12/31 Sergej Galkin <sergej.galkin@gmail.com>:

> typedef struct moving_object
> {
>     double x_high;
>     double y_high;
>     double x_low;
>     double y_low;
>     time_t mov_time;
>     double x_plus;
>     double y_plus;
>     double x_minus;
>     double y_minus;
> } moving_object;

[..]

> #define DatumGetMovP(x) ((moving_object*)DatumGetPointer(x))

[..]

> but index interface function gives me error: Incompatible type in assignment

[..]

>     moving_object *pageunion, curr;

Note that curr is not defined as a pointer.

>         // THIS IS THE ERROR LINE
>     curr = DatumGetMovP(entryvec->vector[0].key);

But here you want to assign a pointer to it.

Nicolas


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

Предыдущее
От: Nicolas Barbier
Дата:
Сообщение: Re: Serializable Isolation without blocking
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: PATCH: Add hstore_to_json()