Re: [HACKERS] Short varlena headers and arrays

2007-02-19 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> Elements of arrays are not subject to being toasted by themselves, so >> I don't think you can make that work. At least not without breaking >> wide swaths of code that works fine today. > You think it's more li

Re: [HACKERS] Short varlena headers and arrays

2007-02-19 Thread Gregory Stark
"Tom Lane" <[EMAIL PROTECTED]> writes: > Gregory Stark <[EMAIL PROTECTED]> writes: >> Once this is done it may be worth having arrays convert to short varlenas as >> well. > > Elements of arrays are not subject to being toasted by themselves, so > I don't think you can make that work. At least no

Re: [HACKERS] Short varlena headers and arrays

2007-02-19 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > Once this is done it may be worth having arrays convert to short varlenas as > well. Elements of arrays are not subject to being toasted by themselves, so I don't think you can make that work. At least not without breaking wide swaths of code that works

[HACKERS] Short varlena headers and arrays

2007-02-19 Thread Gregory Stark
I had intended to make varlenas alignment 'c' and have the heaptuple.c force them to alignment 'i' if they required it. However I've noticed a problem that makes me think I should do this the other way around. The problem is that other places in the codebase use the alignment. In particular array