Re: Why is there a tsquery data type? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why is there a tsquery data type?
Date
Msg-id 12966.1188429969@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why is there a tsquery data type?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Why is there a tsquery data type?  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: int8 & INT64_IS_BUSTED
Next
From: "Florian G. Pflug"
Date:
Subject: Re: Advice on MyXactMade* flags, MyLastRecPtr, pendingDeletes and lazy XID assignment