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
Percy14mo ago
Project ID: N/A
Marco Branco
Marco BrancoOP14mo ago
N/A
Fragly
Fragly14mo ago
I recommend taking a peak at this: https://docs.railway.app/reference/cron-jobs
Brody
Brody14mo ago
fragly
Fragly
Fragly14mo ago
oh no <:e_guh:1082624029971726356>
Brody
Brody14mo ago
why are your emojis so funny
Fragly
Fragly14mo ago
<:SH_yesmirk:964456386425667618> idk, thank you though
Solution
Brody
Brody14mo 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
Fragly14mo ago
damn I completely missed the mark on that one
Brody
Brody14mo ago
maybe
Want results from more Discord servers?
Add your server