How do I create a cron job to run an postgres SQL function?

后端 未结 3 1449
我在风中等你
我在风中等你 2020-12-31 08:54

I assume that all I need to do is to:

  1. Create an sql file e.g. nameofsqlfile.sql contents:

    perform proc_my_sql_funtion();

  2. Execute thi

3条回答
  •  被撕碎了的回忆
    2020-12-31 09:40

    Check this

    http://archives.postgresql.org/pgsql-admin/2000-10/msg00026.php and http://www.dbforums.com/postgresql/340741-cron-jobs-postgresql.html

    or you can just create a bash script to include your coding and call it from crontab

提交回复
热议问题