This repository was archived by the owner on Aug 14, 2023. It is now read-only.
forked from pgadmin-org/pgadmin4
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Incorrect DDL order for event triggers #14
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingupstreamProblem with pgadmin4 itselfProblem with pgadmin4 itself
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstreamProblem with pgadmin4 itselfProblem with pgadmin4 itself