Skip site navigation (1) Skip section navigation (2)

Re: problem with realizing gist index

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Sergej Galkin <sergej(dot)galkin(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with realizing gist index
Date: 2009-12-31 12:50:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
2009/12/31 Sergej Galkin <sergej(dot)galkin(at)gmail(dot)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.

>     curr = DatumGetMovP(entryvec->vector[0].key);

But here you want to assign a pointer to it.


In response to

pgsql-hackers by date

Next:From: Greg Sabino MullaneDate: 2009-12-31 12:59:57
Subject: Re: PATCH: Add hstore_to_json()
Previous:From: Nicolas BarbierDate: 2009-12-31 12:45:49
Subject: Re: Serializable Isolation without blocking

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group