title: How to concatenate a query string safely in plpgsql?
body: <p>For example:</p>
  <h3>Query1</h3>
  <pre><code>abc:='select * from table1'; 
  </code></pre>
  <h3>Query2</h3>
  <pre><code>result:='create view'||quote_ident(view1)||'as'||abc;  
  </code></pre>