Question: how to create database diagram in pgadmin?
Answer: Open PgAdmin. Right click on any table and select statement and it will show two window one is query other is graphical window so you can add the table which you want to generate the diagram. To save go to save as and select Graphical Query (image)