title: How to execute query statements generated in pgAdmin4?
body: <p>I have the following query which generates a list of ALTER TABLE statements in the 'Data Output' field in pgAdmin4.  I can copy &amp; paste them back into the query pane and execute them there.</p>
  
  <pre><code>select 'ALTER TABLE ' || table_name || ' OWNER TO myuser;' from information_schema.tables where table_schema = 'public';
  </code></pre>
  
  <p><strong>How can I execute the generated statements without having to copy &amp; paste them?</strong></p>