There are two ways to create a database in PostgreSQL:
The first: PostgreSQL uses the UI to create a database
After installing PostgreSQL on your system, open the start menu and click pgAdmin 4.
Open pgAdmin, you may need to enter the password for the first time, after entering the password;
Right-click PostgreSQL 10 and connect PostgreSQL to the localhost server.
Right click on the database (Databases), go to the new database, a pop-up box will appear