From c1d62bfd00f4d1ea0647e12947ca1de9fea39b33 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 9 Nov 2003 21:30:38 +0000 Subject: Add operator strategy and comparison-value datatype fields to ScanKey. Remove the 'strategy map' code, which was a large amount of mechanism that no longer had any use except reverse-mapping from procedure OID to strategy number. Passing the strategy number to the index AM in the first place is simpler and faster. This is a preliminary step in planned support for cross-datatype index operations. I'm committing it now since the ScanKeyEntryInitialize() API change touches quite a lot of files, and I want to commit those changes before the tree drifts under me. --- contrib/miscutil/misc_utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/miscutil/misc_utils.c') diff --git a/contrib/miscutil/misc_utils.c b/contrib/miscutil/misc_utils.c index 705e89ee0d7..bf84f3b3c2e 100644 --- a/contrib/miscutil/misc_utils.c +++ b/contrib/miscutil/misc_utils.c @@ -21,6 +21,7 @@ #include "access/tupdesc.h" #include "catalog/catname.h" #include "catalog/pg_listener.h" +#include "catalog/pg_type.h" #include "commands/async.h" #include "fmgr.h" #include "storage/lmgr.h" @@ -88,8 +89,8 @@ active_listeners(text *relname) memcpy(listen_name, VARDATA(relname), len); ScanKeyEntryInitialize(&key, 0, Anum_pg_listener_relname, - F_NAMEEQ, - PointerGetDatum(listen_name)); + BTEqualStrategyNumber, F_NAMEEQ, + PointerGetDatum(listen_name), NAMEOID); sRel = heap_beginscan(lRel, SnapshotNow, 1, &key); } else -- cgit v1.2.3