fix bug #IB3O0M fix code 修复几处6.0.0 中代码问题

(cherry picked commit from <gitee.com//opengauss/openGauss-server/commit/a44a78b5ad00bfb81459c92ea33b83c09101ca65>
This commit is contained in:
song.wu
2024-11-12 11:37:17 +08:00
committed by douxin
parent 138282679a
commit 09d8dd20f3
3 changed files with 2 additions and 4 deletions

View File

@ -306,7 +306,7 @@ Oid RangeVarGetRelidExtended(const RangeVar* relation, LOCKMODE lockmode, bool m
if (isSupportSynonym) {
pfree_ext(errDetail);
errDetail = RelnameGetRelidExtended(relation->relname, &relId, refSynOid, detailInfo);
if (relId != NULL && OidIsValid(relId)) {
if (OidIsValid(relId)) {
Oid namespaceId = get_rel_namespace(relId);
LookupExplicitNamespace(get_namespace_name(namespaceId));
}

View File

@ -489,8 +489,6 @@ Datum gs_get_preparse_location(PG_FUNCTION_ARGS)
bool nulls[3] = {0};
HeapTuple tuple;
Datum result;
char location[MAXFNAMELEN * 3] = {0};
errno_t rc = EOK;
const int COLUMN_NUM = 3;
tupdesc = CreateTemplateTupleDesc(COLUMN_NUM, false);

View File

@ -349,7 +349,7 @@ static void remove_oldest_log(const char *prefix_name, const char *log_path, int
rc = snprintf_s(pathname, MAXPGPATH, MAXPGPATH - 1, "%s/%s", log_path, de->d_name);
securec_check_ss_c(rc, "\0", "\0");
if (stat(pathname, &fst) < 0) {
printf(_("%s: could not stat file %s\n"), prefix_name, pathname, gs_strerror(errno));
printf(_("%s: could not stat file %s! %s\n"), prefix_name, pathname, gs_strerror(errno));
continue;
}