From edf0b5f0db0da14340fa4ea140f5c20003e84fe5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 17 Jun 2000 23:41:51 +0000 Subject: 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. --- src/include/bootstrap/bootstrap.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/include/bootstrap') 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); -- cgit v1.2.3