OSDN Git Service

Use INT8 to store the byte length of bi-gram string in "bigm" struct.
authorMasaoFujii <masao.fujii@gmail.com>
Wed, 18 Mar 2015 20:24:10 +0000 (05:24 +0900)
committerMasaoFujii <masao.fujii@gmail.com>
Wed, 18 Mar 2015 20:25:13 +0000 (05:25 +0900)
commita88df0d0fad1db164f68dcbeaec47f144c18ae11
treebfbc0d1a036139ec738dd3ba7f12a89a1efcb40d
parent9b01487f12b3b12ad089e26aaad7f568ec4025dd
Use INT8 to store the byte length of bi-gram string in "bigm" struct.

"bigm" struct has the field "bytelen" which indicates the byte length of
bi-gram string. Previously the data type of that field was INT. This commit
changes the data type to INT8 because the byte length of bi-gram string is
eight bytes at most and INT8 is enough large to indicate that length.
This change is useful to increase the maximum allowed size of the column
indexed by pg_bigm.

This change is cost-effective, i.e., simple but can alleviate the limitation of
the column size very much. So per discussion we decided to back-patch this to
all supported versions.

Beena Emerson, original idea from Sawada Masahiko.
bigm.h