The path to the postgres binary should be added in the box titled C/C++ application; for example, "/home/sudarsha/git/postgresql12/install/bin/postgres"
Then click the "Apply" button. Click "Run" to start the program.
should see following in your console:
PostgreSQL stand-alone backend 12.4
You can run your commandss here, and you can press ctrl-D to exit. To start up the console again, choose the project, and click on the Run button (a green button with a play/rightarrow symbol)
(In server mode you will see the message:
LOG: database system was shut down at (current date and time) UTC
LOG: database system is ready to accept connections
LOG: autovacuum launcher started