Skip to content

Make query compatible with postgres 19 - #783

Open
docteurklein wants to merge 1 commit into
supabase-community:mainfrom
docteurklein:patch-1
Open

Make query compatible with postgres 19#783
docteurklein wants to merge 1 commit into
supabase-community:mainfrom
docteurklein:patch-1

Conversation

@docteurklein

Copy link
Copy Markdown

postgres 19beta1 introduces a new column location in the pg_available_extensions view. https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=f3c9e341c

But because its columns are referenced positionally, it breaks this query in 19. Here is a fix that works on both 18 and 19.

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

✖ Database error: column reference "comment" is ambiguous
and
"cannot connect to database"

postgres 19beta1 introduces a new column `location` in the `pg_available_extensions` view.  

But because its columns are referenced positionally, it breaks this query in 19.  
Here is a fix that works on both 18 and 19.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant