1 CREATE TABLE test (a INT);
2 SELECT 1 FROM pg_switch_wal();
14 archived := count(*) > 0 FROM pg_ls_dir('.', false, false) a
15 WHERE a ~ '^[0-9A-F]{24}$';
16 IF archived OR loops > 120 * 10 THEN EXIT; END IF;
17 PERFORM pg_sleep(0.1);
22 SELECT count(*) > 0 FROM pg_ls_dir('.', false, false) a
23 WHERE a ~ '^[0-9A-F]{24}$';