From 0ad3c60caf5f77edfefaf8850fbba5ea4fe28640 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Wed, 25 Jan 2023 14:36:51 +0900 Subject: Rename contrib module basic_archive to basic_wal_module This rename is in preparation for the introduction of recovery modules, where basic_wal_module will be used as a base template for the set of callbacks introduced. The former name did not really reflect all that. Author: Nathan Bossart Discussion: https://postgr.es/m/20221227192449.GA3672473@nathanxps13 --- contrib/basic_archive/sql/basic_archive.sql | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 contrib/basic_archive/sql/basic_archive.sql (limited to 'contrib/basic_archive/sql') diff --git a/contrib/basic_archive/sql/basic_archive.sql b/contrib/basic_archive/sql/basic_archive.sql deleted file mode 100644 index 14e236d57ab..00000000000 --- a/contrib/basic_archive/sql/basic_archive.sql +++ /dev/null @@ -1,22 +0,0 @@ -CREATE TABLE test (a INT); -SELECT 1 FROM pg_switch_wal(); - -DO $$ -DECLARE - archived bool; - loops int := 0; -BEGIN - LOOP - archived := count(*) > 0 FROM pg_ls_dir('.', false, false) a - WHERE a ~ '^[0-9A-F]{24}$'; - IF archived OR loops > 120 * 10 THEN EXIT; END IF; - PERFORM pg_sleep(0.1); - loops := loops + 1; - END LOOP; -END -$$; - -SELECT count(*) > 0 FROM pg_ls_dir('.', false, false) a - WHERE a ~ '^[0-9A-F]{24}$'; - -DROP TABLE test; -- cgit v1.2.3