Skip to content

bug: migration 20220524042504_bg.sql is invalid in PG 17+ #1077

Description

@iExalt

Version

main

Describe the bug.

Migration 20220524042504_bg.sql uses unqualified calls to uuid_nil() in functions which are then used in CREATE INDEX statements.

PG 17 changes functions to use a safe search_path during maintenance operations making the unqualified calls invalid.

Minimum reproducible example

Create a PG17+ database and attempt to run the migrations against it.

Migration 20211119192131_initial.sql will succeed, but the next migration 20220524042504_bg.sql will fail.

Relevant log output

Other/Misc.

Calls should be qualified with public or the explicit nil UUID '00000000-0000-0000-0000-000000000000'::uuid can be used.

Code of Conduct

  • I agree to follow NCX Infra Controller's Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Assignees

Labels

bugA defect in existing software (deprecated - use issue type, but it's needed for reporting now)

Type

Fields

No fields configured for Bug.

Projects

Status
Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions