supabase / dbdev

Database Package Registry for Postgres
https://database.dev/
Apache License 2.0
370 stars 19 forks source link

Install script fails on pg_tle extension #156

Closed Sicria closed 10 months ago

Sicria commented 10 months ago

Bug report

Describe the bug

Running the install script for dbdev locally via npx supabase db reset results in an error.

Resetting database...
Initialising schema...
Applying migration 00000000000000_setup_test_environment.sql...
Error: ERROR: extension "pg_tle" is not available (SQLSTATE 0A000)
At statement 2: create extension if not exists pg_tle
Try rerunning the command with --debug to troubleshoot the error.
 ELIFECYCLE  Command failed with exit code 1.

To Reproduce

Create a migration using the install script and run the db reset to initialise the DB.

Expected behavior

It appears to work fine in the hosted version when doing npx supabase db push, but running it locally doesn't work for some reason.

System information

imor commented 10 months ago

Looks like the pg_tle extension was not available in the db. Which docker image version are you one? It works for me on public.ecr.aws/supabase/postgres:15.1.0.117.

Sicria commented 10 months ago

Looks like updating supabase to the latest version has resolved this. Thanks for your help!