From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: Garbage pad bytes within datums are bad news |
Date: | 2008-04-04 20:58:14 |
Message-ID: | 8218.1207342694@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
>> The alternative seems to be to forbid uninitialized pad bytes within
>> Datums. That's not very pleasant to contemplate either, since it'll
>> forever be vulnerable to sins of omission.
> Hmm, we can add to palloc random filling of allocated memory with
> --enable-cassert. It'll allow to catch such bugs in most cases.
Based on the fact that this problem went undetected for so long,
I'm not real convinced of that. The difficulty is exactly that
not very many system behaviors will fail obviously if nodetrees
that should be seen as equal are not.
Perhaps we could add some additional tests to help exercise it?
But how do you get them applied to all datatypes?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2008-04-04 21:00:17 | Re: modules |
Previous Message | Tom Lane | 2008-04-04 20:50:34 | Re: modules |