Re: How do I include PostGIS geofunctions to a new database after I have already installed PostGIS. - Mailing list pgsql-general

From Paul Ramsey
Subject Re: How do I include PostGIS geofunctions to a new database after I have already installed PostGIS.
Date
Msg-id 30fe546d0911061329t5aeab1d2xbff8b2ef5d9568a@mail.gmail.com
Whole thread Raw
In response to How do I include PostGIS geofunctions to a new database after I have already installed PostGIS.  (John Mitchell <mitchelljj98@gmail.com>)
List pgsql-general
The simplest trick is to install PostGIS in a blank database and then
use that database as a template hence forth. But how to install
PostGIS at all?

Track down the postgis SQL file (either postgis-1.4.sql or
lwpostgis.sql depending on your version).

createlang plpgsql yourdatabase
psql -f lwpostgis.sql -d yourdatabase
psql -f spatial_ref_sys.sql -d yourdatabase



On Fri, Nov 6, 2009 at 1:22 PM, John Mitchell <mitchelljj98@gmail.com> wrote:
> Hi,
>
> I have PostgreSQL 8.4 and I have a database which was created when PostGIS
> was installed which has the geofunctions within it.
>
> When I try to create a new database it does not include these geofunctions.
>
> How do I include PostGIS geofunctions to a new database after I have already
> installed PostGIS.
>
> Thanks,
>
> John
>
> --
> John J. Mitchell
>

pgsql-general by date:

Previous
From: John Mitchell
Date:
Subject: How do I include PostGIS geofunctions to a new database after I have already installed PostGIS.
Next
From: Stephen Tyler
Date:
Subject: Re: Re: Bench marking performance or experience using Solid State Disk Drives (SSD) with postgres