Bruce Momjian <bruce@momjian.us> writes:
> Tom Lane wrote:
>> By that logic, we don't need any data types other than text.
> What is tsquery giving us that text would not?
A preprocessed representation that can be compared to tsvector
efficiently.
Now, if you'd asked whether we need *both* tsvector and tsquery,
that'd be a fair question. I'm not 100% clear on what the differences
are, but they seem pretty subtle. Do you think that having only
one datatype would be clearer?
regards, tom lane