How to use PostgresSQL Cron Plugin?

Hey guys! I need to schedule a function to run every day that updates a table based on the current timestamp. How can i add pg_cron with Railway?
Solution:
@marcobranco you would need to build an image that has the pg_cron extension installed use this repo as a base https://github.com/railwayapp-templates/postgres-ssl these are the install instructions https://github.com/citusdata/pg_cron#installing-pg_cron you would need to modify the latest dockerfile...
Jump to solution
10 Replies
Percy
Percy13mo ago
Project ID: N/A
Marco Branco
Marco Branco13mo ago
N/A
Fragly
Fragly13mo ago
I recommend taking a peak at this: https://docs.railway.app/reference/cron-jobs
Brody
Brody13mo ago
fragly
Fragly
Fragly13mo ago
oh no <:e_guh:1082624029971726356>
Brody
Brody13mo ago
why are your emojis so funny
Fragly
Fragly13mo ago
<:SH_yesmirk:964456386425667618> idk, thank you though
Solution
Brody
Brody13mo ago
@marcobranco you would need to build an image that has the pg_cron extension installed use this repo as a base https://github.com/railwayapp-templates/postgres-ssl these are the install instructions https://github.com/citusdata/pg_cron#installing-pg_cron you would need to modify the latest dockerfile
Fragly
Fragly13mo ago
damn I completely missed the mark on that one
Brody
Brody13mo ago
maybe
Want results from more Discord servers?
Add your server