Activate pg_cron

Sebastian Pacheco 116 Reputation points
2024-03-21T13:59:40.75+00:00

Hello everyone.... we need to run some cron in 2 databases that I have in an instance of "Azure Database for PostgreSQL flexible server". For this, enable "azure.extensions -> pg_cron" from the portal, then it seems that I must CREATE the EXTENSION in my DB instance and for that from what I read it is using the command:
CREATE EXTENSION pg_cron SCHEMA addons;

But when I run it it gives me the following error: ERROR: schema "addons" does not exist. Should I really create the SCHEMA addons???

Thanks.

Azure Database for PostgreSQL
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CHIRANJIB MAZUMDAR 0 Reputation points
    2024-03-21T14:09:28.0766667+00:00

    You can install it in the default schema if you do not specify "SCHEMA addons".


  2. GeethaThatipatri-MSFT 27,337 Reputation points Microsoft Employee
    2024-03-25T15:26:18.9833333+00:00