Right-click on the database and select Generate ERD. NOTE: Only pgAdmin 4 version 30 and newer can generate the ERD from an existing database.