Discussion:
A1 data
(too old to reply)
Wenqi Zhou
2011-01-24 06:46:30 UTC
Permalink
one of the test data I got is highText->vl_data=thunderstone~,,,,,,
I think the length of it is 19, but it seems highText->vl_len-4 is 12.
After compressed to thunderstone, it shows "saved 0 chars". Is that
corrected? What should be its length?

Regards,
Wenqi
Pedram Ghodsnia
2011-01-24 15:18:53 UTC
Permalink
The content of hightext->vl_data in this case is "thunderstone "which
has 12 characters. Note that the keys for this index are not
null-terminated character arrays. Instead, postgres represents strings
using a structure with an explicit length field and then the array of
characters.
So "save 0 chars" is correct.

Pedram
Post by Wenqi Zhou
one of the test data I got is highText->vl_data=thunderstone~,,,,,,
I think the length of it is 19, but it seems highText->vl_len-4 is 12.
After compressed to thunderstone, it shows "saved 0 chars". Is that
corrected? What should be its length?
Regards,
Wenqi
Loading...