diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-17 23:41:51 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-17 23:41:51 +0000 |
| commit | edf0b5f0db0da14340fa4ea140f5c20003e84fe5 (patch) | |
| tree | 82ef18a42cf3ab710244879d219c993708540487 /src/include/bootstrap/bootstrap.h | |
| parent | d03a933ec5400f77fc132d4a47bb7d2981ff5187 (diff) | |
| download | postgresql-edf0b5f0db0da14340fa4ea140f5c20003e84fe5.tar.gz | |
Get rid of IndexIsUniqueNoCache() kluge by the simple expedient of
passing the index-is-unique flag to index build routines (duh! ...
why wasn't it done this way to begin with?). Aside from eliminating
an eyesore, this should save a few milliseconds in btree index creation
because a full scan of pg_index is not needed any more.
Diffstat (limited to 'src/include/bootstrap/bootstrap.h')
| -rw-r--r-- | src/include/bootstrap/bootstrap.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/include/bootstrap/bootstrap.h b/src/include/bootstrap/bootstrap.h index 63c9e1b100..b3ddea19d5 100644 --- a/src/include/bootstrap/bootstrap.h +++ b/src/include/bootstrap/bootstrap.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: bootstrap.h,v 1.17 2000/01/26 05:57:53 momjian Exp $ + * $Id: bootstrap.h,v 1.18 2000/06/17 23:41:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -34,14 +34,11 @@ extern int numattr; extern int DebugMode; extern int BootstrapMain(int ac, char *av[]); -extern void index_register(char *heap, - char *ind, - int natts, - AttrNumber *attnos, - uint16 nparams, - Datum *params, - FuncIndexInfo *finfo, - PredInfo *predInfo); + +extern void index_register(char *heap, char *ind, + int natts, AttrNumber *attnos, + FuncIndexInfo *finfo, PredInfo *predInfo, + bool unique); extern void err_out(void); extern void InsertOneTuple(Oid objectid); |
