From db66a194b28aca11850aef5c50f837fa47f21d43 Mon Sep 17 00:00:00 2001 From: Jan Nidzwetzki Date: Tue, 20 Sep 2022 13:53:07 +0200 Subject: [PATCH] Fix an ereport syntax error when using PG 12.0 Since PG 12.3, the syntax of the ereport() function has changed slightly. The change 97a603fe5c5ba25aa6e4e596fd7da7a401051d7b introduces an ereport() call that only works using newer PG versions. This PR changes the ereport() call to a PG 12.0 compatible syntax. --- src/bgw/job.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bgw/job.c b/src/bgw/job.c index fe1e616b8..19570c140 100644 --- a/src/bgw/job.c +++ b/src/bgw/job.c @@ -113,9 +113,10 @@ ts_bgw_job_run_config_check(Oid check, int32 job_id, Jsonb *config) job_execute_function(funcexpr); else ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("unsupported function type")), - errdetail("Only functions are allowed as custom configuration checks"), - errhint("Use a FUNCTION instead")); + (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("unsupported function type"), + errdetail("Only functions are allowed as custom configuration checks"), + errhint("Use a FUNCTION instead"))); } /* Run the check function on a configuration. It will generate errors if there