Skip to content

Commit

Permalink
Qualify function call in migration script (#291)
Browse files Browse the repository at this point in the history
The migration script for pg_cron 1.2 to 1.3 was using nextval() without
qualifying it with pg_catalog. This is a problem if the user has
installed pg_cron in a schema other than pg_catalog. This commit fixes
the problem by qualifying the function call.
  • Loading branch information
hanefi authored Oct 16, 2023
1 parent fa97888 commit 306a680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_cron--1.2--1.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CREATE SEQUENCE cron.runid_seq;
CREATE TABLE cron.job_run_details (
jobid bigint,
runid bigint primary key default nextval('cron.runid_seq'),
runid bigint primary key default pg_catalog.nextval('cron.runid_seq'),
job_pid integer,
database text,
username text,
Expand Down

0 comments on commit 306a680

Please sign in to comment.