Allow a null pointer to be returned from get_opname().
authorThomas G. Lockhart
Sun, 16 Aug 1998 05:38:41 +0000 (05:38 +0000)
committerThomas G. Lockhart
Sun, 16 Aug 1998 05:38:41 +0000 (05:38 +0000)
Previously, had thrown an error, but looking for alternate strategies
 for table indices utilization would prefer to continue.

src/backend/utils/cache/lsyscache.c

index 5829170d744ab477b9eee6e2bf6eb6729d7391a4..be8d348e51f51ec2fe57a70af12f5d7afee69a87 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.18 1998/08/11 18:28:18 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.19 1998/08/16 05:38:41 thomas Exp $
  *
  * NOTES
  *   Eventually, the index information should go through here, too.
@@ -220,7 +220,10 @@ get_opname(Oid opno)
        return pstrdup(optup.oprname.data);
    else
    {
+       /* don't throw an error anymore; we want to continue... */
+#if FALSE
        elog(ERROR, "can't look up operator %d\n", opno);
+#endif
        return NULL;
    }
 }