[HACKERS] lexeme ordering in tsvector

2009-11-30 Thread Sushant Sinha
It seems like the ordering of lexemes in tsvector has changed from 8.3 to 8.4. For example in 8.3.1, postgres=# select to_tsvector('english', 'quit everytime'); to_tsvector --- 'quit':1 'everytim':2 The lexemes are arranged by length and then by string

Re: [HACKERS] lexeme ordering in tsvector

2009-11-30 Thread Tom Lane
Sushant Sinha sushant...@gmail.com writes: Was this change in ordering deliberate? Yes. Wouldn't length comparison be cheaper than memcmp? It's not just about cheapest anymore, it also has to support prefix operations. regards, tom lane -- Sent via pgsql-hackers