From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | Ashutosh Bapat <ashutosh(dot)bapat(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: using arrays within structure in ECPG |
Date: | 2014-03-27 17:35:26 |
Message-ID: | 20140327173526.GA19440@feivel.credativ.lan |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Mar 24, 2014 at 11:52:30AM +0530, Ashutosh Bapat wrote:
> For all the members of struct employee, except arr_col, the size of array
> is set to 14 and next member offset is set of sizeof (struct employee). But
> for arr_col they are set to 3 and sizeof(int) resp. So, for the next row
> onwards, the calculated offset of arr_col member would not coincide with
> the real arr_col member's address.
>
> Am I missing something here?
No, this looks like a bug to me. I haven't had time to look into the source codebut the offset definitely is off.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Noah Misch | 2014-03-27 17:52:19 | Re: Useless "Replica Identity: NOTHING" noise from psql \d |
Previous Message | Tom Lane | 2014-03-27 17:09:36 | Re: Useless "Replica Identity: NOTHING" noise from psql \d |