Que hago para que TODOS las puedan utilizar? (Logre instalar POSTGIS, pero las funciones solo puede utilizarlas 'postgres')

From: GLUPIADO DAS <glupiado(at)yahoo(dot)com>
To: "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Que hago para que TODOS las puedan utilizar? (Logre instalar POSTGIS, pero las funciones solo puede utilizarlas 'postgres')
Date: 2011-10-02 04:26:59
Message-ID: 1317529619.37600.YahooMailNeo@web160912.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola.

Logre instalar PROJ 4
Luego GEOS
Finalmente PostGIS
en un CentOS con PgSQL 8.4

Sin embargo,  cuando corro el script.php

$Q=pg_query('SELECT PostGIS_Full_Version();');
$R=PG_FETCH_ARRAY($Q);
echo '<pre>';
print_r($R);
echo '</pre>';

Me devuelve el error

Warning: pg_query() [function.pg-query]: Query failed: ERROR: function postgis_lib_version() does not exist LINE 1: SELECT PostGIS_lib_Version(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. in /home/gui/public_html/p/t01.php on line23

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in/home/gui/public_html/p/t01.php on line 24

Lo cual no sucede si me logueo como user postgres.

Como puedo hacer para que LAS FUNCIONES POSTGIS sean accesibles 
PARA TODOS LOS USUARIOS ?

Gracias

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message GLUPIADO DAS 2011-10-02 04:42:08 Que hago para que TODOS las puedan utilizar? (Logre instalar POSTGIS, pero las funciones solo puede utilizarlas 'postgres')
Previous Message Miguel Angel Hernandez Moreno 2011-09-30 22:10:37 Re: ayuda con un trigger