Re: user defined type - Mailing list pgsql-novice

From Tom Lane
Subject Re: user defined type
Date
Msg-id 28783.1100881214@sss.pgh.pa.us
Whole thread Raw
In response to Re: user defined type  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
List pgsql-novice
Kjetil Haaland <kjetil.haaland@student.uib.no> writes:
>    first = palloc(sizeof(char)*secondStart);
>    elog(NOTICE, "2:first=%s", first);
>    elog(NOTICE, "strlen(first)=%d", strlen(first));

This is bogus because you've only allocated space, not filled it with
anything.  It will contain whatever that RAM was last used for.

            regards, tom lane

pgsql-novice by date:

Previous
From: Kjetil Haaland
Date:
Subject: Re: user defined type
Next
From: sarlav kumar
Date:
Subject: another index scan problem