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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vanmunin Chea <vac(at)cse(dot)unsw(dot)EDU(dot)AU>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: If there a bug in the psql or just a feature .
Date: 2002-09-10 15:10:42
Message-ID: 19680.1031670642@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Vanmunin Chea <vac(at)cse(dot)unsw(dot)EDU(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vanmunin Chea 2002-09-10 15:22:40 Re: If there a bug in the psql or just a feature .
Previous Message Tom Lane 2002-09-10 14:46:37 Re: Rule updates and PQcmdstatus() issue