Header And Logo

PostgreSQL
| The world's most advanced open source database.

pg_ts_dict.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_ts_dict.h
00004  *  definition of dictionaries for tsearch
00005  *
00006  *
00007  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00008  * Portions Copyright (c) 1994, Regents of the University of California
00009  *
00010  * src/include/catalog/pg_ts_dict.h
00011  *
00012  * NOTES
00013  *      the genbki.pl script reads this file and generates .bki
00014  *      information from the DATA() statements.
00015  *
00016  *      XXX do NOT break up DATA() statements into multiple lines!
00017  *          the scripts are not as smart as you might think...
00018  *
00019  *-------------------------------------------------------------------------
00020  */
00021 #ifndef PG_TS_DICT_H
00022 #define PG_TS_DICT_H
00023 
00024 #include "catalog/genbki.h"
00025 
00026 /* ----------------
00027  *      pg_ts_dict definition.  cpp turns this into
00028  *      typedef struct FormData_pg_ts_dict
00029  * ----------------
00030  */
00031 #define TSDictionaryRelationId  3600
00032 
00033 CATALOG(pg_ts_dict,3600)
00034 {
00035     NameData    dictname;       /* dictionary name */
00036     Oid         dictnamespace;  /* name space */
00037     Oid         dictowner;      /* owner */
00038     Oid         dicttemplate;   /* dictionary's template */
00039 
00040 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00041     text        dictinitoption; /* options passed to dict_init() */
00042 #endif
00043 } FormData_pg_ts_dict;
00044 
00045 typedef FormData_pg_ts_dict *Form_pg_ts_dict;
00046 
00047 /* ----------------
00048  *      compiler constants for pg_ts_dict
00049  * ----------------
00050  */
00051 #define Natts_pg_ts_dict                5
00052 #define Anum_pg_ts_dict_dictname        1
00053 #define Anum_pg_ts_dict_dictnamespace   2
00054 #define Anum_pg_ts_dict_dictowner       3
00055 #define Anum_pg_ts_dict_dicttemplate    4
00056 #define Anum_pg_ts_dict_dictinitoption  5
00057 
00058 /* ----------------
00059  *      initial contents of pg_ts_dict
00060  * ----------------
00061  */
00062 
00063 DATA(insert OID = 3765 ( "simple" PGNSP PGUID 3727 _null_));
00064 DESCR("simple dictionary: just lower case and check for stopword");
00065 
00066 #endif   /* PG_TS_DICT_H */