title: build postgis 2.0.0 failure
body: <p>I have postgresql <code>9.3</code> installed on archlinux.</p>
  
  <p>I am trying to restore database backup (<code>psql &lt;db_hame&gt; &lt; backup.file</code>) which uses postgis 2.0 functions, types etc. I tried to install postgis with pacman (<code>pacman -S postgis</code>) it successfully installed but it seems that <code>2.0</code> and <code>2.1</code> versions are incompatible as I have lots of errors complaining about missing functions during database import:</p>
  
  <pre><code>ERROR:  could not find function "geography_analyze" in file "/usr/lib/postgresql/postgis-2.1.so"
  ERROR:  function public.geography_analyze(internal) does not exist
  ERROR:  function geography_analyze(internal) does not exist
  ERROR:  could not find function "geometry_analyze_2d" in file "/usr/lib/postgresql/postgis-2.1.so"
  ERROR:  function public.geometry_analyze(internal) does not exist
  ERROR:  function geometry_analyze(internal) does not exist
  ERROR:  type "geometry" is only a shell
  ERROR:  type "public.geometry_dump" does not exist
  ERROR:  type "geometry" is only a shell
  ERROR:  type "public.valid_detail" does not exist
  ERROR:  SQL function cannot accept shell type geography
  ERROR:  function public._st_bestsrid(geography) does not exist
  ERROR:  PL/pgSQL functions cannot return type geometry
  ERROR:  function public._st_concavehull(geometry) does not exist
  ERROR:  type "geometry_dump" does not exist
  ERROR:  function public._st_dumppoints(geometry, integer[]) does not exist
  ERROR:  SQL function cannot accept shell type geometry
  ERROR:  function public._st_within(geometry, geometry) does not exist
  ERROR:  could not find function "geography_gist_selectivity" in file "/usr/lib/postgresql/postgis-2.1.so"
  ERROR:  function public.geography_gist_join_selectivity(internal, oid, internal, smallint) does not exist
  ERROR:  could not find function "geography_gist_selectivity" in file "/usr/lib/postgresql/postgis-2.1.so"
  ERROR:  function public.geography_gist_selectivity(internal, oid, internal, integer) does not exist
  ERROR:  could not find function "geometry_gist_joinsel_2d" in file "/usr/lib/postgresql/postgis-2.1.so"
  ERROR:  function public.geometry_gist_joinsel_2d(internal, oid, internal, smallint) does not exist
  ERROR:  could not find function "geometry_gist_sel_2d" in file "/usr/lib/postgresql/postgis-2.1.so"
  ERROR:  function public.geometry_gist_sel_2d(internal, oid, internal, integer) does not exist
  </code></pre>
  
  <p>Then I tried to build postgis package using following links: <a href="http://boringnerdystuff.wordpress.com/2012/04/14/postgis-2-0-pkgbuild-for-arch-linux/" rel="nofollow">http://boringnerdystuff.wordpress.com/2012/04/14/postgis-2-0-pkgbuild-for-arch-linux/</a> and <a href="https://github.com/philbns/PostGIS-2.0-PKGBUILD/tree/80d8af061fa73e9a09dd6ec5c204bc4b65e38202" rel="nofollow">https://github.com/philbns/PostGIS-2.0-PKGBUILD/tree/80d8af061fa73e9a09dd6ec5c204bc4b65e38202</a>. However build fails with following error:</p>
  
  <pre><code>lwgeom_triggers.c: In function ‘cache_bbox’:
  lwgeom_triggers.c:78:33: error: dereferencing pointer to incomplete type
    tupdesc = trigdata-&gt;tg_relation-&gt;rd_att;
  </code></pre>
  
  <p>And whole <code>makepkg</code> log: <a href="http://pastebin.com/GGqECymZ" rel="nofollow">http://pastebin.com/GGqECymZ</a></p>
  
  <p>How can I import database that uses postgis 2.0 ?</p>