mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
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
|
||||
* $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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user