title: Postgresql: Can't access to file « $libdir/postgis-2.1 » no such file or directory
body: <p>I guess this is a known issue but since I have used a script that removed my postgresql-9.4-postgis-2.1, I'm now unable to get rid of this SQL error under Debian.</p>
  
  <blockquote>
    <p>Can't access to file « $libdir/postgis-2.1 » no such file or directory</p>
  </blockquote>
  
  <p>I've done the following:</p>
  
  <pre><code>- Remove new unwanted postgresql-9.5-postgis-2.2 package installed
  - Reinstalling postgresql-9.4-postgis-2.1, postgresql-9.4-postgis-scripts and postgis
  - Using SQL: ALTER EXTENSION postgis UPDATE TO '2.1.4' --under postgres user
  - Using SQL: ALTER EXTENSION postgis_topology UPDATE TO '2.1.4' --under postgres user
  </code></pre>
  
  <p>And <code>SELECT * FROM pg_available_extensions;</code> returns </p>
  
  <pre><code>[...]
  postgis 2.1.4   2.1.4   PostGIS geometry, geography, and raster spatial types and functions.
  </code></pre>
  
  <p>But still this message when accessing object like tables that uses geometry type.</p>
  
  <p>Any idea?</p>