aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/gin.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-10-05 17:57:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-10-05 17:57:40 +0000
commite378f82e0029a7a6fda9c655bd79d4404e566c0b (patch)
tree744c1cd2841844ddf00880e80aae9ab7b460edfd /src/include/access/gin.h
parentf2332ea1e99e2a2d04d1744c86e899c52f5e841e (diff)
downloadpostgresql-e378f82e0029a7a6fda9c655bd79d4404e566c0b.tar.gz
postgresql-e378f82e0029a7a6fda9c655bd79d4404e566c0b.zip
Make use of qsort_arg in several places that were formerly using klugy
static variables. This avoids any risk of potential non-reentrancy, and in particular offers a much cleaner workaround for the Intel compiler bug that was affecting ginutil.c.
Diffstat (limited to 'src/include/access/gin.h')
-rw-r--r--src/include/access/gin.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/access/gin.h b/src/include/access/gin.h
index 7035635e686..c37b3672781 100644
--- a/src/include/access/gin.h
+++ b/src/include/access/gin.h
@@ -3,7 +3,7 @@
* header file for postgres inverted index access method implementation.
*
* Copyright (c) 2006, PostgreSQL Global Development Group
- * $PostgreSQL: pgsql/src/include/access/gin.h,v 1.8 2006/10/04 00:30:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/access/gin.h,v 1.9 2006/10/05 17:57:40 tgl Exp $
*--------------------------------------------------------------------------
*/
@@ -232,7 +232,8 @@ extern Buffer GinNewBuffer(Relation index);
extern void GinInitBuffer(Buffer b, uint32 f);
extern void GinInitPage(Page page, uint32 f, Size pageSize);
extern int compareEntries(GinState *ginstate, Datum a, Datum b);
-extern Datum *extractEntriesS(GinState *ginstate, Datum value, uint32 *nentries);
+extern Datum *extractEntriesS(GinState *ginstate, Datum value,
+ uint32 *nentries, bool *needUnique);
extern Datum *extractEntriesSU(GinState *ginstate, Datum value, uint32 *nentries);
extern Page GinPageGetCopyPage(Page page);