1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-21 10:42:50 +03:00

Add support to GIN for =(anyarray,anyarray) operation

This commit is contained in:
Teodor Sigaev
2006-07-11 19:49:14 +00:00
parent 6d57ed7797
commit 001d30ee6b
6 changed files with 52 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginarrayproc.c,v 1.2 2006/07/11 17:04:12 momjian Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginarrayproc.c,v 1.3 2006/07/11 19:49:13 teodor Exp $
*-------------------------------------------------------------------------
*/
@@ -28,6 +28,7 @@
#define GinOverlapStrategy 1
#define GinContainsStrategy 2
#define GinContainedStrategy 3
#define GinEqualStrategy 4
#define ARRAYCHECK(x) do { \
if ( ARR_HASNULL(x) ) \
@@ -86,6 +87,7 @@ ginarrayconsistent(PG_FUNCTION_ARGS) {
res = TRUE;
break;
case GinContainsStrategy:
case GinEqualStrategy:
res = TRUE;
for(i=0;i<nentries;i++)
if ( !check[i] ) {