Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pg_cron for openSUSE:Factory checked in at 2021-04-01 14:17:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pg_cron (Old) and /work/SRC/openSUSE:Factory/.pg_cron.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pg_cron" Thu Apr 1 14:17:18 2021 rev:6 rq:882111 version:1.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/pg_cron/pg_cron.changes 2020-10-25 18:06:11.715321165 +0100 +++ /work/SRC/openSUSE:Factory/.pg_cron.new.2401/pg_cron.changes 2021-04-01 14:18:34.408097861 +0200 @@ -1,0 +2,6 @@ +Mon Mar 29 19:16:20 UTC 2021 - Andrey Karepin <egdf...@opensuse.org> + +- update to 1.3.1 + * Fixes a memory leak + +------------------------------------------------------------------- Old: ---- pg_cron-1.3.0.tar.gz New: ---- pg_cron-1.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pg_cron.spec ++++++ --- /var/tmp/diff_new_pack.JEzE7M/_old 2021-04-01 14:18:34.888098608 +0200 +++ /var/tmp/diff_new_pack.JEzE7M/_new 2021-04-01 14:18:34.892098614 +0200 @@ -1,7 +1,7 @@ # -# spec file for package pg_cron +# spec file for package %{pgversion}-pg_cron # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ %bcond_with llvm %endif Name: %{pgversion}-%{sname} -Version: 1.3.0 +Version: 1.3.1 Release: 0 Summary: PostgreSQL module for simple job schedule License: PostgreSQL ++++++ pg_cron-1.3.0.tar.gz -> pg_cron-1.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pg_cron-1.3.0/CHANGELOG.md new/pg_cron-1.3.1/CHANGELOG.md --- old/pg_cron-1.3.0/CHANGELOG.md 2020-10-06 21:53:32.000000000 +0200 +++ new/pg_cron-1.3.1/CHANGELOG.md 2021-03-29 12:17:31.000000000 +0200 @@ -1,3 +1,7 @@ +### pg_cron v1.3.1 (March 29, 2021) ### + +* Fixes a memory leak + ### pg_cron v1.3.0 (September 30, 2020) ### * Background worker support by Bertrand Drouvot diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pg_cron-1.3.0/src/job_metadata.c new/pg_cron-1.3.1/src/job_metadata.c --- old/pg_cron-1.3.0/src/job_metadata.c 2020-10-06 21:53:32.000000000 +0200 +++ new/pg_cron-1.3.1/src/job_metadata.c 2021-03-29 12:17:31.000000000 +0200 @@ -355,6 +355,7 @@ Datum jobIdDatum = 0; int64 jobId = 0; bool failOK = true; + MemoryContext originalContext = CurrentMemoryContext; StartTransactionCommand(); PushActiveSnapshot(GetTransactionSnapshot()); @@ -363,6 +364,7 @@ { PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); /* if the job_run_details table is not yet created, the run ID is not used */ return 0; @@ -387,6 +389,7 @@ PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); return jobId; } @@ -670,6 +673,7 @@ { PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); pgstat_report_activity(STATE_IDLE, NULL); return NIL; @@ -704,9 +708,8 @@ PopActiveSnapshot(); CommitTransactionCommand(); - pgstat_report_activity(STATE_IDLE, NULL); - MemoryContextSwitchTo(originalContext); + pgstat_report_activity(STATE_IDLE, NULL); return jobList; } @@ -842,6 +845,7 @@ const int argCount = 6; Oid argTypes[6]; Datum argValues[6]; + MemoryContext originalContext = CurrentMemoryContext; SetCurrentStatementStartTimestamp(); StartTransactionCommand(); @@ -851,6 +855,7 @@ { PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); return; } @@ -900,6 +905,7 @@ SPI_finish(); PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); pgstat_report_activity(STATE_IDLE, NULL); } @@ -911,6 +917,7 @@ Oid argTypes[6]; Datum argValues[6]; int i; + MemoryContext originalContext = CurrentMemoryContext; SetCurrentStatementStartTimestamp(); StartTransactionCommand(); @@ -920,6 +927,7 @@ { PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); return; } @@ -1001,6 +1009,7 @@ SPI_finish(); PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); pgstat_report_activity(STATE_IDLE, NULL); } @@ -1008,6 +1017,7 @@ MarkPendingRunsAsFailed(void) { StringInfoData querybuf; + MemoryContext originalContext = CurrentMemoryContext; SetCurrentStatementStartTimestamp(); StartTransactionCommand(); @@ -1017,6 +1027,7 @@ { PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); return; } @@ -1042,6 +1053,7 @@ SPI_finish(); PopActiveSnapshot(); CommitTransactionCommand(); + MemoryContextSwitchTo(originalContext); pgstat_report_activity(STATE_IDLE, NULL); }