title: importing osm file into a postgres/postgis database
body: <p>Im using the tool osm2pgsql to import an osm file into a postgres database using phppgadmin as the administrative tool. i have only downloaded a small town from osm in xml format and im having trouble importing it using the terminal on mac. Im a bit of a noob at this so any help would be greatly appreciated. Ive looked at several articles but none provide the clarity i need in order to fulfill my needs.</p>
  
  <p>Thanks</p>
  
  <p>im getting this error could be something small not sure.. </p>
  
  <pre><code>Using projection SRS 900913 (Spherical Mercator)
  Setting up table: planet_osm_point
  NOTICE:  table "planet_osm_point" does not exist, skipping
  NOTICE:  table "planet_osm_point_tmp" does not exist, skipping
  SELECT AddGeometryColumn('planet_osm_point', 'way', 900913, 'POINT', 2 );
   failed: ERROR:  function addgeometrycolumn(unknown, unknown, integer, unknown,     integer) does not exist
  LINE 1: SELECT AddGeometryColumn('planet_osm_point', 'way', 900913, ...
             ^
  HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
  </code></pre>