Re: [HACKERS] Why is there a tsquery data type?

2008-03-12 Thread Bruce Momjian
Added to TODO: * Consider a special data type for regular expressions http://archives.postgresql.org/pgsql-hackers/2007-08/msg01067.php --- Tom Lane wrote: > Ron Mayer <[EMAIL PROTECTED]> writes: > > Could similar logic

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Tom Lane
Ron Mayer <[EMAIL PROTECTED]> writes: > Could similar logic argue that we'd want special types for regular > expressions too? That seems quite parallel to the tsquery type to me. Yeah, it certainly seems like something we might want to consider in future --- we could get rid of that klugy cache fo

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Ron Mayer
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: >> Why does text search need a tsquery data type? I realize it needs >> tsvector so it can create indexes and updated trigger columns, but it >> seems tsquery could instead just be a simple text string. > > By that logic, we don't need a

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Oleg Bartunov
On Thu, 30 Aug 2007, Bruce Momjian wrote: Gregory Stark wrote: "Bruce Momjian" <[EMAIL PROTECTED]> writes: There is no question things would be clearer with only one text search data type. The only value I can see to having a tsquery data type is that you can store a tsquery value in a colum

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Bruce Momjian
Tom Lane wrote: > Gregory Stark <[EMAIL PROTECTED]> writes: > > How would that happen if there wasn't a tsquery type? > > I don't think Bruce is suggesting that the search operand can really > be plain text (or if he is, he's nuts). The question here is whether Yes, that is what I was suggesting

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > How would that happen if there wasn't a tsquery type? I don't think Bruce is suggesting that the search operand can really be plain text (or if he is, he's nuts). The question here is whether there's really a need for a distinction between tsvector and

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Bruce Momjian
Gregory Stark wrote: > "Bruce Momjian" <[EMAIL PROTECTED]> writes: > > > Gregory Stark wrote: > >> "Bruce Momjian" <[EMAIL PROTECTED]> writes: > >> > >> > There is no question things would be clearer with only one text search > >> > data type. The only value I can see to having a tsquery data ty

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Gregory Stark
"Bruce Momjian" <[EMAIL PROTECTED]> writes: > Gregory Stark wrote: >> "Bruce Momjian" <[EMAIL PROTECTED]> writes: >> >> > There is no question things would be clearer with only one text search >> > data type. The only value I can see to having a tsquery data type is >> > that you can store a tsq

Re: [HACKERS] Why is there a tsquery data type?

2007-08-30 Thread Bruce Momjian
Gregory Stark wrote: > "Bruce Momjian" <[EMAIL PROTECTED]> writes: > > > There is no question things would be clearer with only one text search > > data type. The only value I can see to having a tsquery data type is > > that you can store a tsquery value in a column, but why would that be > > mu

Re: [HACKERS] Why is there a tsquery data type?

2007-08-29 Thread Gregory Stark
"Bruce Momjian" <[EMAIL PROTECTED]> writes: > There is no question things would be clearer with only one text search > data type. The only value I can see to having a tsquery data type is > that you can store a tsquery value in a column, but why would that be > much better than just storing it in

Re: [HACKERS] Why is there a tsquery data type?

2007-08-29 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> 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

Re: [HACKERS] Why is there a tsquery data type?

2007-08-29 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> 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* tsve

Re: [HACKERS] Why is there a tsquery data type?

2007-08-29 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Why does text search need a tsquery data type? I realize it needs > > tsvector so it can create indexes and updated trigger columns, but it > > seems tsquery could instead just be a simple text string. > > By that logic, we don't nee

Re: [HACKERS] Why is there a tsquery data type?

2007-08-29 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Why does text search need a tsquery data type? I realize it needs > tsvector so it can create indexes and updated trigger columns, but it > seems tsquery could instead just be a simple text string. By that logic, we don't need any data types other than

[HACKERS] Why is there a tsquery data type?

2007-08-29 Thread Bruce Momjian
Why does text search need a tsquery data type? I realize it needs tsvector so it can create indexes and updated trigger columns, but it seems tsquery could instead just be a simple text string. -- Bruce Momjian <[EMAIL PROTECTED]> http://momjian.us EnterpriseDB