134 |
@item support incremental updating of tag files. |
@item support incremental updating of tag files. |
135 |
@item support customizing with gtags.conf. |
@item support customizing with gtags.conf. |
136 |
@item generate completion list for completing input method. |
@item generate completion list for completing input method. |
|
@item Postgres database system is available as a tag store. |
|
137 |
@end itemize |
@end itemize |
138 |
|
|
139 |
@c *************************************************************************** |
@c *************************************************************************** |
1964 |
* Plugin:: How to plug in a parser. |
* Plugin:: How to plug in a parser. |
1965 |
* Compact format:: Compact format. |
* Compact format:: Compact format. |
1966 |
* Incremental updating:: Incremental updating. |
* Incremental updating:: Incremental updating. |
|
* Postgres:: Using Postgres. |
|
1967 |
@end menu |
@end menu |
1968 |
|
|
1969 |
@c *************************************************************************** |
@c *************************************************************************** |
2137 |
@end example |
@end example |
2138 |
|
|
2139 |
@c *************************************************************************** |
@c *************************************************************************** |
|
@node Postgres |
|
|
@section Using Postgres. |
|
|
|
|
|
You can make tag files in postgres database instead of normal files. |
|
|
To do this, you must setup postgres database system, configure GLOBAL |
|
|
with @option{--with-postgres}, build it and make a database so that you can |
|
|
access to it. You need a database for a project. |
|
|
At the first time of creating tag files, you need specify info string with |
|
|
@option{--info}. The info string is passed to PQconnectdb(3) as is. |
|
|
@opindex -P |
|
|
@example |
|
|
|
|
|
# setup postgres database system |
|
|
% set DBNAME=gtagsdb |
|
|
% createdb $DBNAME |
|
|
% gtags -P --info="dbname=$DBNAME user=`whoami`" |
|
|
|
|
|
@end example |
|
|
|
|
|
Once tag files are created, you need not use @option{--info}. |
|
|
If info string is not specified then gtags load it from tag files. |
|
|
|
|
|
Please be careful of the value of info string. |
|
|
It is passed to Postgres system as is. |
|
|
If you mistake the value then program may abort with core dump. |
|
|
|
|
|
@c *************************************************************************** |
|
2140 |
@c Reference manual. |
@c Reference manual. |
2141 |
@c *************************************************************************** |
@c *************************************************************************** |
2142 |
@node Reference |
@node Reference |