diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1998-08-16 05:38:41 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1998-08-16 05:38:41 +0000 |
commit | efc9a91db954d937e66a4b9273d91c4338886023 (patch) | |
tree | 5d0d2da9a74e68eddad0cd5ce407dc6bf47a547d /src/backend/utils/cache/lsyscache.c | |
parent | 4c91723d35b8ba6673dbcf33c15034b8c309a8ba (diff) | |
download | postgresql-efc9a91db954d937e66a4b9273d91c4338886023.tar.gz postgresql-efc9a91db954d937e66a4b9273d91c4338886023.zip |
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.
Diffstat (limited to 'src/backend/utils/cache/lsyscache.c')
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index 5829170d744..be8d348e51f 100644 --- a/src/backend/utils/cache/lsyscache.c +++ b/src/backend/utils/cache/lsyscache.c @@ -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; } } |