Muudatused
Allikas: Pingviini viki
Kui puhas install on tehtud tuleb paigaldada postgresql andmebaas ja postgre postgis -i laiendus.
urpmi postgresql8.4, postgresql8.4-contrib, postgis
Peale postgre paigaldamist tuleks see ka käivitada, mille jooksul luuakse default andmebaasid ja configuratsiooni fail.
Mandriva 2010.1 postgre install miskipärast teeb default template andmebaasid ASCII vormingus, mille tulemusena ei saa nende pealt luua UTF8 vormingus baase.
[postgres@andres xxx ~]$ psql
psql (8.4.4)
Type "help" for help.
[postgres@xxx ~]$ createlang plpgsql gis
[postgres@xxx ~]$
Seadistame ära postgis -i. Lisame postgre -le postgisi laiendused:
[postgres@andres ~]$ psql -d gis -f /usr/share/postgresql/contrib/postgis-1.5/postgis.sql
SET
BEGIN
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE TYPE
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
...
DROP FUNCTION
DROP FUNCTION
DROP FUNCTION
[postgres@andres ~]$
Anname teatud tabelitele kasutaja mapnik õigused:
[postgres@andres ~]$ psql -d gis
psql (8.4.4)
Type "help" for help.
gis=# ALTER TABLE geometry_columns OWNER TO mapnik;
ALTER TABLE
gis=# ALTER TABLE spatial_ref_sys OWNER TO mapnik;
ALTER TABLE
gis=# \q
[postgres@andres ~]$