title: Select columns in PostgreSQL from an array
body: <p>Let’s say I have the following queries:</p>
  <pre><code>SELECT
      A, b, c, d, e, f, g, h, i, j, k
  INTO test
  FROM source
  WHERE ...
  
  SELECT
      A, b, c, d, e, f, g, h, i, j, k
  INTO test1
  FROM source
  WHERE …
  
  SELECT
      A, b, c, d, e, f, g, h, i, j, k
  INTO test2
  FROM source
  WHERE …
  </code></pre>
  <p>Is there any way I could place A, b, c, d, e, f, g, h, i, j, k into a list or an array that I could then pass in select?</p>
  <p>Something like this:</p>
  <pre><code>myColumns = [A, b, c, d, e, f, g, h, i, j, k]
  
  SELECT
      myColumns
  INTO test2
  FROM source
  </code></pre>