File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -78,24 +78,24 @@ Complete usage guide can be found in the [documentation](https://pg-timetable.re
78781 . Make sure your ** PostgreSQL** server is up and running and has a role with ` CREATE ` privilege for a target database, e.g.
7979
8080 ``` sql
81- my_database=> CREATE ROLE scheduler PASSWORD ' somestrong' ;
82- my_database=> GRANT CREATE ON DATABASE my_database TO scheduler;
81+ my_database=> CREATE ROLE scheduler PASSWORD ' somestrong' ;
82+ my_database=> GRANT CREATE ON DATABASE my_database TO scheduler;
8383 ```
8484
85851 . Create a new job, e .g . run ` VACUUM` each night at 00 :30
8686
8787 ` ` ` sql
88- my_database=> SELECT timetable.add_job('frequent-vacuum', '30 0 * * *', 'VACUUM');
89- add_job
90- ---------
91- 3
92- (1 row)
88+ my_database=> SELECT timetable.add_job('frequent-vacuum', '30 0 * * *', 'VACUUM');
89+ add_job
90+ ---------
91+ 3
92+ (1 row)
9393 ` ` `
9494
95951 . Run the pg_timetable
9696
9797 ` ` ` terminal
98- # pg_timetable postgresql://scheduler:somestrong@localhost/my_database --clientname=vacuumer
98+ pg_timetable postgresql://scheduler:somestrong@localhost/my_database --clientname=vacuumer
9999 ` ` `
100100
1011011 . PROFIT!
You can’t perform that action at this time.
0 commit comments