Re: If there a bug in the psql or just a feature .

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: If there a bug in the psql or just a feature .
Дата
Msg-id 19680.1031670642@sss.pgh.pa.us
обсуждение исходный текст
Ответ на If there a bug in the psql or just a feature .  (Vanmunin Chea <vac@cse.unsw.EDU.AU>)
Ответы Re: If there a bug in the psql or just a feature .  (Vanmunin Chea <vac@cse.unsw.EDU.AU>)
Список pgsql-hackers
Vanmunin Chea <vac@cse.unsw.EDU.AU> writes:
> // This one is not working
> typedef struct Myindex {
>     double *indexes;
>     int level;
>     int size;
> } Myindex

You cannot use a pointer inside a Postgres datatype.  The system will
have no idea that the pointer is there and so will not copy the
pointed-to data, nor update the pointer, when the datum is copied,
stored on disk, etc.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rule updates and PQcmdstatus() issue
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Rule updates and PQcmdstatus() issue