| From: | Matthew Wilson <matt(at)tplus1(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | I want to search my project source code |
| Date: | 2007-10-27 13:01:31 |
| Message-ID: | slrnfi6dld.goq.matt@coleridge.tplus1.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-10-27 14:04:20 | Re: WAL archiving idle database |
| Previous Message | andy | 2007-10-27 12:52:27 | Re: Postgres+Apache+PHP (again, but in different setup) |