From eb93f3a0b633ad6afb0f37391b87f460c4b0663b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 4 Dec 2020 14:25:23 +0100 Subject: Convert elog(LOG) calls to ereport() where appropriate User-visible log messages should go through ereport(), so they are subject to translation. Many remaining elog(LOG) calls are really debugging calls. Reviewed-by: Alvaro Herrera Reviewed-by: Michael Paquier Reviewed-by: Noah Misch Discussion: https://www.postgresql.org/message-id/flat/92d6f545-5102-65d8-3c87-489f71ea0a37%40enterprisedb.com --- src/backend/access/gist/gist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/access/gist/gist.c') diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 25b42e38f22..3f2b416ce1c 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -1167,8 +1167,9 @@ gistfixsplit(GISTInsertState *state, GISTSTATE *giststate) Page page; List *splitinfo = NIL; - elog(LOG, "fixing incomplete split in index \"%s\", block %u", - RelationGetRelationName(state->r), stack->blkno); + ereport(LOG, + (errmsg("fixing incomplete split in index \"%s\", block %u", + RelationGetRelationName(state->r), stack->blkno))); Assert(GistFollowRight(stack->page)); Assert(OffsetNumberIsValid(stack->downlinkoffnum)); -- cgit v1.2.3