Re: [GENERAL] Incorrect FTS result with GIN index

2010-07-26 Thread Artur Dabrowski
Hello Oleg, I totally agree, that the problem should be fixed. Saying this, I need to add that: - I have no knowledge of postgres development, - I cannot dedicate any significant time to this problem, - I am no longer working for the project where the problem occurred, - In the mentioned project

Re: [GENERAL] Incorrect FTS result with GIN index

2010-07-20 Thread Artur Dabrowski
6_64 GNU/Linux > > PostgreSQL 8.4.4 on x86_64-unknown-linux-gnu, compiled by GCC gcc (Ubuntu > 4.4.1-4ubuntu9) 4.4.1, 64-bit > > As a last resort I recommend you to compile pg yourself and see if the > problem exists. > > Oleg > > > On Tue, 20 Jul 2010, Artur D

Re: [GENERAL] Incorrect FTS result with GIN index

2010-07-20 Thread Artur Dabrowski
The CentOS used for testing is a 64-bits version. Artur Dabrowski wrote: > > I tested the same backup on our CentOS 5.4 virtual machine (running on xen > server) and the results are really weird (118 rows, comparing to 116 on > win xp and 123 expected): > > > --

Re: [GENERAL] Incorrect FTS result with GIN index

2010-07-20 Thread Artur Dabrowski
I tested the same backup on our CentOS 5.4 virtual machine (running on xen server) and the results are really weird (118 rows, comparing to 116 on win xp and 123 expected): Aggregate (cost=104.00..104.01 rows=1 width=0) (actual time=120.373..120.374 rows=1 loops=1) -> Bitmap Heap Scan on sear

Re: [GENERAL] Incorrect FTS result with GIN index

2010-07-19 Thread Artur Dabrowski
Hello Oleg, my results are different. The analysis looks like this (please note the different numbers of rows): Aggregate (cost=104.05..104.06 rows=1 width=0) (actual time=152.133..152.135 rows=1 loops=1) -> Bitmap Heap Scan on search_tab (cost=5.39..103.98 rows=25 width=0) (actual time=76.

Re: [GENERAL] Incorrect FTS results with GIN index

2010-07-15 Thread Artur Dabrowski
My version of PostgreSQL is 8.4.3. -- View this message in context: http://old.nabble.com/Incorrect-FTS-results-with-GIN-index-tp29172750p29173652.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org)

Re: [GENERAL] Incorrect FTS results with GIN index

2010-07-15 Thread Artur Dabrowski
I pasted incorrect query in point 5. It should be: 5. MORE DETAILED QUERY WITH INDEX select keywords from search_tab where (to_tsvector('german', keywords ) @@ to_tsquery('german', 'eeI:*')) and (to_tsvector('german', keywords ) @@ to_tsquery('german', 'dd:*'));

[GENERAL] Incorrect FTS result with GIN index

2010-07-15 Thread Artur Dabrowski
Hello, I was trying to use GIN index, but the results seem be incorrect. 1. QUERY WITHOUT INDEX select count(*) from search_tab where (to_tsvector('german', keywords ) @@ to_tsquery('german', 'ee:*')) and (to_tsvector('german', keywords ) @@ to_tsquery('german', 'dd:*')); count ---