From 9a81c9fa3f6a2f57b9db2a1ce5584c85fc1d977e Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Sun, 23 Jun 2019 12:02:19 -0700 Subject: [PATCH] Don't call PG_RETURN_BOOL() in a function not returning Datum. This code is new in v12, and the defect probably was not user-visible. --- src/backend/utils/adt/timestamp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c index e5ac371fa0..853a8dc49a 100644 --- a/src/backend/utils/adt/timestamp.c +++ b/src/backend/utils/adt/timestamp.c @@ -5180,8 +5180,8 @@ TimestampTimestampTzRequiresRewrite(void) long offset; if (pg_get_timezone_offset(session_timezone, &offset) && offset == 0) - PG_RETURN_BOOL(false); - PG_RETURN_BOOL(true); + return false; + return true; } /* timestamp_timestamptz() -- 2.40.0