pg_ctl.exe restart -D "
Here is what the above code is Doing:
1. It is creating a connection to the database.
2. It is creating a cursor object.
3. It is executing the query.
4. It is fetching the result of the query.
5. It is printing the result.