title: How to run alter table script in postgres using bash
body: <p>I wanted to run the alter table command using bash script. I managed to create the table, load the basemodel, create config tables and etc. The script will login to the postgres database before it is execute the alter table command. It stuck as (abcdb=>       ) without proceed to the alter table command. Is there any way to make sure the alter table able to execute?</p>
  
  <p>The login as</p>
  
  <pre><code>psql -h 191.169.51.10 -d abcdb -U myname
  
  
  
   alter table attr_config rename regexp to regexp_val;
   alter table class_action_config rename type to type_name;
   alter table funcitem_config rename type to type_name;
  </code></pre>