I have a need to run a query for maintenance reasons as below using psql
psql -U postgres -d test 'update sometbl set col1 = true;'
I could put the query in a sql file and run it using -f option but I really need this to run from within a bash script and don't want to have to use an additional sql file for this simple query.