Commit efc9a91d authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Allow a null pointer to be returned from get_opname().

Previously, had thrown an error, but looking for alternate strategies
 for table indices utilization would prefer to continue.
parent 4c91723d
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* Eventually, the index information should go through here, too. * Eventually, the index information should go through here, too.
...@@ -220,7 +220,10 @@ get_opname(Oid opno) ...@@ -220,7 +220,10 @@ get_opname(Oid opno)
return pstrdup(optup.oprname.data); return pstrdup(optup.oprname.data);
else else
{ {
/* don't throw an error anymore; we want to continue... */
#if FALSE
elog(ERROR, "can't look up operator %d\n", opno); elog(ERROR, "can't look up operator %d\n", opno);
#endif
return NULL; return NULL;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment