This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Description
Bug report
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
- Create a directory named
repro
- Create docker-compose.yml
services:
db1:
image: supabase/postgres
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
db2:
image: supabase/postgres
ports:
- 5433:5432
environment:
POSTGRES_PASSWORD: postgres
- Run the following on
db1:
CREATE FUNCTION f() RETURNS event_trigger LANGUAGE plpgsql AS $$ BEGIN END; $$;
CREATE EVENT TRIGGER et ON DDL_COMMAND_END
WHEN TAG IN ('CREATE EXTENSION')
EXECUTE PROCEDURE f();
- Run:
docker run --rm -it --network repro_default supabase/pgadmin-schema-diff 'postgresql://postgres:postgres@db1/postgres' 'postgresql://postgres:postgres@db2/postgres'
- Run the resulting SQL on
db2
Expected behavior
The SQL runs successfully.