Re: I want to search my project source code

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Matthew Wilson <matt(at)tplus1(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: I want to search my project source code
Date: 2007-10-27 15:13:52
Message-ID: Pine.LNX.4.64.0710271913040.25678@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

openfts.sf.net is tool for you. It has even example scripts for
indexing/searching file system.

Oleg

On Sat, 27 Oct 2007, Matthew Wilson wrote:

> I have a lot of code -- millions of lines at this point, written
> over the last 5 years. Everything is in a bunch of nested folders.
>
> At least once a week, I want to find some code that uses a few modules,
> so I have to launch a find + grep at the top of the tree and then wait
> for it to finish.
>
> I wonder if I could store our source code in a postgresql table and
> then use full text searching to index. Then I hope I could run a query
> where I ask for all files that use modules X, Y, and Z.
>
> I'm looking for something sort of like the locate utility, except that
> instead of building a quickly-searchable list of file names, I want to
> be able to search file contents also.
>
>
> Matt
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shane Ambler 2007-10-27 16:27:31 Re: Selecting tree data
Previous Message Tom Lane 2007-10-27 14:25:05 Re: I want to search my project source code