> ISTM that in this line:> > keying = (text *)palloc( keylen + unamelen );> > You forgot to include the length of the header VARHDRSZ.>
Aha, that'd be it, it's been a long day.
Thanks Martijn