title: What is the equivalent of PL/SQL %NOTFOUND in PL/pgSQL?
body: <p>Everything's in the title.</p>
  
  <p>I am Looping on a cursor and would like to have the </p>
  
  <pre><code>EXIT WHEN curs%NOTFOUND
  </code></pre>
  
  <p>when there is no more row, what is the equivalent of %NOTFOUND under PostgreSQL ?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Or the other cursors attributes %ISOPEN, %EMPTY, etc...</p>