You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error restoring my database with cron schema in there:
... [100] ERROR: could not open extension control file "/usr/share/postgresql/12/extension/pg_cron.control": No such file or directory
... [100] STATEMENT: CREATE EXTENSION IF NOT EXISTS pg_cron WITH SCHEMA pg_catalog;
Then a bunch of related errors:
... [100] ERROR: extension "pg_cron" does not exist
... [100] STATEMENT: COMMENT ON EXTENSION pg_cron IS 'Job scheduler for PostgreSQL';
... [100] ERROR: schema "cron" does not exist
... [100] STATEMENT: COPY cron.job (jobid, schedule, command, nodename, nodeport, database, username, active, jobname) FROM stdin;
... [100] ERROR: schema "cron" does not exist
... [100] STATEMENT: COPY cron.job_run_details (jobid, runid, job_pid, database, username, command, status, return_message, start_time, end_time) FROM stdin;
... [100] ERROR: schema "cron" does not exist at character 26
... [100] STATEMENT: SELECT pg_catalog.setval('cron.jobid_seq', 2, true);
Setup
I have a Kubernetes pod with the following configuration:
pg_restore: from TOC entry 4428; 0 0 ACL TABLE job rds_superuser
pg_restore: error: could not execute query: ERROR: schema "cron" does not exist
Command was: REVOKE ALL ON TABLE cron.job FROM rdsadmin;
REVOKE SELECT ON TABLE cron.job FROM PUBLIC;
GRANT ALL ON TABLE cron.job TO rds_superuser;
GRANT SELECT ON TABLE cron.job TO PUBLIC;
pg_restore: creating ACL "cron.TABLE job_run_details"
pg_restore: from TOC entry 4429; 0 0 ACL TABLE job_run_details rds_superuser
pg_restore: error: could not execute query: ERROR: schema "cron" does not exist
Command was: REVOKE ALL ON TABLE cron.job_run_details FROM rdsadmin;
REVOKE SELECT,DELETE ON TABLE cron.job_run_details FROM PUBLIC;
GRANT ALL ON TABLE cron.job_run_details TO rds_superuser;
GRANT SELECT,DELETE ON TABLE cron.job_run_details TO PUBLIC;
I'm dumping RDS PostgreSQL 12.17 data and want to restore it in the pod. However, for some reason it can't restore cron schema.
I hope I can get some help here.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Good day!
ERROR
I got the following error restoring my database with
cron
schema in there:Then a bunch of related errors:
Setup
I have a Kubernetes pod with the following configuration:
The last
operator
container log is:I'm dumping RDS PostgreSQL 12.17 data and want to restore it in the pod. However, for some reason it can't restore
cron
schema.I hope I can get some help here.
Thank you in advance!
The text was updated successfully, but these errors were encountered: