title: Bind variables in the from clause for Postgres
body: <p>I'm attempting to write an extension for SQL Developer to better support Postgres. These are just XML configuration files with SQL snippets in them. To display the values for a postgres sequence, I need to run a simple query of the following form:</p>
  
  <pre><code>select * from schema.sequence
  </code></pre>
  
  <p>The trouble with this is that the Oracle SQL Developer environment provides the correct schema and node (sequence) name as bind variables. This would mean that I should format the query as:</p>
  
  <pre><code>select * from :SCHEMA.:NAME
  </code></pre>
  
  <p>The trouble with this is that bind variables are only valid in the select clause or the where clause (as far as I'm aware), and using this form of the query returns a <code>"syntax error at or near "$1"</code> error message.</p>
  
  <p>Is there a way to return the values in the sequence object without directly selecting them from the sequence? Perhaps some obtuse joined statement from pg_catalog tables?</p>