Re: [GENERAL] Saving bytes in custom data type

2011-03-16 Thread Daniele Varrazzo
On Wed, Mar 16, 2011 at 6:29 PM, Merlin Moncure wrote: > question: if you are storing just flags and bytes, why not use a bytea > and store the flags out of line? I'm not sure I understand your question. I am writing a custom datatype with variable size more or less following the guidelines in <

Re: [GENERAL] Saving bytes in custom data type

2011-03-16 Thread Merlin Moncure
On Wed, Mar 16, 2011 at 12:19 PM, Daniele Varrazzo wrote: > Hello, > > I'm writing a variable size custom datatype in C. The variable part is > an array of unsigned long, and it needs to be aligned. I further need > to store a few flags, for which a single byte would be more than > enough (I would

[GENERAL] Saving bytes in custom data type

2011-03-16 Thread Daniele Varrazzo
Hello, I'm writing a variable size custom datatype in C. The variable part is an array of unsigned long, and it needs to be aligned. I further need to store a few flags, for which a single byte would be more than enough (I would actually need just a single bit, but I'd probably keep some bits to s