title: Get session number from namespace USERENV in postgresql
body: <p>While migrating oracle to postgresql I came up with the query:</p>
  <p>Oracle:</p>
  <pre><code>select SYS_CONTEXT('USERENV','SID') from dual;
  </code></pre>
  <p>What will be the equivalent in PostgreSQL?</p>