From bf68e0d75c8874dbd417519e401bb3634a09faac Mon Sep 17 00:00:00 2001 From: Nicola Girardi Date: Tue, 13 May 2025 20:57:53 +0100 Subject: [PATCH 1/2] FDN-3571: do not run_maintenance in install.sh The step is time consuming, memory consuming, more so as time goes by. Eventually it will hit limits (e.g., number of locks acquired) and fail. It happened in some repository already, and this step has been removed there as a consequence. It is also an unnecessary step, so we remove it. --- install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install.sh b/install.sh index d99178b..56113ef 100755 --- a/install.sh +++ b/install.sh @@ -19,7 +19,6 @@ then psql -q -U postgres -d postgres -c "GRANT ALL ON DATABASE $DBNAME TO api" psql -q -U postgres -d $DBNAME -f $DBNAME.schema.sql psql -q -U postgres -d $DBNAME -f $DBNAME.data.sql - psql -q -U api -d $DBNAME -c 'SELECT partman5.run_maintenance()' fi sem-apply --url postgresql://api@localhost/$DBNAME From 4d480f85e1cb02d6e4aeecdcef9198a6142e1abf Mon Sep 17 00:00:00 2001 From: Nicola Girardi Date: Wed, 14 May 2025 09:37:09 +0100 Subject: [PATCH 2/2] FDN-3571: get rid of refresh_journaling_native --- scripts/20250514-083620.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 scripts/20250514-083620.sql diff --git a/scripts/20250514-083620.sql b/scripts/20250514-083620.sql new file mode 100644 index 0000000..2660f78 --- /dev/null +++ b/scripts/20250514-083620.sql @@ -0,0 +1,2 @@ +DROP FUNCTION IF EXISTS journal.refresh_journaling; +ALTER FUNCTION journal.refresh_journaling_native RENAME TO refresh_journaling;