From: Pavan Deolasee Date: Tue, 21 Jun 2016 05:47:23 +0000 (+0530) Subject: Add a warning when a node fails to find OID for the given relation. X-Git-Tag: XL_10_R1BETA1~651 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d785d48c7d37105edce7b4b73b9a22fcb828945f;p=postgres-xl.git Add a warning when a node fails to find OID for the given relation. Regression shows a bunch of warnings which should be fixed over due course --- diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c index 251f6a9339..98a1e0063d 100644 --- a/src/backend/nodes/readfuncs.c +++ b/src/backend/nodes/readfuncs.c @@ -239,8 +239,13 @@ set_portable_input(bool value) token = pg_strtok(&length); /* get relname */ \ relname = nullable_string(token, length); \ if (relname) \ + { \ relid = get_relname_relid(relname, \ NSP_OID(nspname)); \ + if (!OidIsValid(relid)) \ + elog(WARNING, "could not find OID for relation %s.%s", nspname,\ + relname); \ + } \ else \ relid = InvalidOid; \ } while (0)