PostgreSQL run query as a string in place of sql file : <p>I have a need to run a query for maintenance reasons as below using psql</p>

<pre><code>psql -U postgres -d test 'update sometbl set col1 = true;'
</code></pre>

<p>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.</p>
