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.
This commit is contained in:
parent
4c91723d35
commit
efc9a91db9
5
src/backend/utils/cache/lsyscache.c
vendored
5
src/backend/utils/cache/lsyscache.c
vendored
@ -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)
|
|||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user