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/backend/storage/large_object/inv_api.c | |
| 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/backend/storage/large_object/inv_api.c')
| -rw-r--r-- | src/backend/storage/large_object/inv_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c index 07269dcada..474f2616aa 100644 --- a/src/backend/storage/large_object/inv_api.c +++ b/src/backend/storage/large_object/inv_api.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.70 2000/06/15 06:07:34 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.71 2000/06/17 23:41:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -165,7 +165,7 @@ inv_create(int flags) classObjectId[0] = INT4_OPS_OID; index_create(objname, indname, NULL, NULL, BTREE_AM_OID, 1, &attNums[0], &classObjectId[0], - 0, (Datum) NULL, NULL, FALSE, FALSE, FALSE); + (Node *) NULL, false, false, false); /* make the index visible in this transaction */ CommandCounterIncrement(); |
