title: Cannot access foreign table using Postgres FDW
body: <p>I had a foreign table set up in Postgres 10. The role "role1" has been granted usage on the foreign server (fs) that was set up using the <code>postgres</code> superuser. </p>
  
  <p>I imported the table using the import schema command:</p>
  
  <pre><code>IMPORT FOREIGN SCHEMA f_schema LIMIT TO (my_fdw_table) FROM fs INTO ls;
  </code></pre>
  
  <p>That worked fine.</p>
  
  <p>However, when I try to query the table I get the following error:</p>
  
  <pre><code>SELECT * FROM my_fdw_table LIMIT 1;
  ERROR:  permission denied for view my_fdw_table
  CONTEXT:  remote SQL command: ...
  </code></pre>
  
  <p>My understanding is that FDW should treat views and tables the same.</p>