Re: bugs and bug tracking

From: Oleg Bartunov <obartunov(at)gmail(dot)com>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: bugs and bug tracking
Date: 2015-10-08 18:09:43
Message-ID: CAF4Au4yb=XnFMmL1wfumbk5nvzAsMNgObuNKeZcB31XSJm5UPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 8, 2015 at 8:11 PM, Nathan Wagner <nw+pg(at)hydaspes(dot)if(dot)org> wrote:

> On Wed, Oct 07, 2015 at 03:06:50PM -0400, Stephen Frost wrote:
> > * Nathan Wagner (nw+pg(at)hydaspes(dot)if(dot)org) wrote:
> > > I have added full text searching to my tracker. I only index the first
> > > 50 KB of each message. There's apparently a one MB limit on that
> > > anyway, which a few messages exceed. I figure anything important is
> > > probably in the first 50KB. I could be wrong. I could re-index fairly
> > > easily. It seems to work pretty well.
>

we have a patch, which eliminates 1MB limit, will be published soon.

> >
> > Note that we have FTS for the -bugs, and all the other, mailing lists..
>
> True, but that finds emails. The search I have finds bugs (well, bug
> reports
> anyway). Specifically, I have the following function:
>
> create or replace function bugvector(bugid bigint)
> returns tsvector language 'sql' as $$
> select tsvagg(
> setweight(to_tsvector(substr(body(msg), 1, 50*1024)), 'D')
> ||
> setweight(to_tsvector(header_value(msg, 'Subject')), 'C')
> )
> from emails
> where bug = $1
> $$ strict;
>
> which, as you can see, collects into one tsvector all the emails associated
> with that particular bug. So a search hit is for the whole bug. There's
> probably some search artifacts here. I suspect a bug with a long email
> thread
> will be ranked higher than a one with a short thread. Perhaps that's ok
> though.
>
>
it's possible to write bugs specific parser for fts. Also, order results by
date submitted, so we always will have originated message first.

> --
> nw
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-10-08 18:37:01 Re: More work on SortSupport for text - strcoll() and strxfrm() caching
Previous Message Peter Geoghegan 2015-10-08 18:07:18 Re: More work on SortSupport for text - strcoll() and strxfrm() caching