title: How can I run multiple commands with PSQL client
body: <p>I have been trying to run multiple command via psql client to connect to remote database and run some commands in a single line , but it seems this isn't possible ?</p>
  
  <p>I tried to run below command and it give me straight error after executing the first command.
  I have all bash variable set in environment.</p>
  
  <pre><code>PGPASSWORD=${ADMIN_PASSWORD} psql -h ${REMOTE_HOST} -U postgres -d ${SOME_DATABASE} -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";' -c "CREATE USER '$DB_USER' WITH PASSWORD '${DB_PASSWORD}';" -c 'GRANT ALL PRIVILEGES ON DATABASE "${DB_DATABASE}" TO "${DB_USER}";'
  
  </code></pre>
  
  <p>when I run this it looks like only first command got successful , I read the instruction from psql help <code>-c, --command=COMMAND    run only single command (SQL or internal) and exit</code> . </p>
  
  <p>But Is there a way to make use of bash pipe or backslash to use it this way ?</p>