<div dir="ltr">When you connect to a data base you have to be authentified, so usually you provide login/password.<div><br><div>If you don't, this means that your are implicitly using your unix login as your database loggin (a role).</div>
<div><br></div><div>Th mapping (unix - postgres role) is set in server conf file (from memory : pg_hba.conf)</div><div><br></div><div>Maybe in database your role doesn't have the correct rights to perform the querry.</div>
<div><br></div><div><br></div><div>Cheers,</div><div>Rémi-C</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/19 Thomas Schweikle <span dir="ltr"><<a href="mailto:tschweikle@gmail.com" target="_blank">tschweikle@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> What is the information connection your<br>
> software is using to connect to DB where<br>
> you want to execute commands.<br>
<br>
</div>The database is accessed using tcp/ip.<br>
<br>
2013/12/19 Rémi Cura <<a href="mailto:remi.cura@gmail.com">remi.cura@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> What is the information connection your software is using to connect to DB<br>
> where you want to execute commands.<br>
> Probably wrong role.<br>
><br>
> Cheers,<br>
> Rémi-C<br>
><br>
><br>
> 2013/12/19 Thomas Schweikle <<a href="mailto:tschweikle@gmail.com">tschweikle@gmail.com</a>><br>
>><br>
>> Hi!<br>
>><br>
>> I am seeing various errors while a routine tries to create databases.<br>
>> I'm having trouble interpreting these errors:<br>
>> --- SNIP<br>
>> 18:35:34,895 ERROR Dez 18, 2013 6:35:34 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: CREATE TABLE "public"."npp" ("npp_fid" serial PRIMARY<br>
>> KEY, "the_geom" GEOMETRY, "Name" VARCHAR(256), "Longitude" DOUBLE<br>
>> PRECISION, "Latitude" DOUBLE PRECISION);<br>
>> --- SNAP<br>
>> To me it looks like they are trying to create a database, but without<br>
>> rights to create the database? Any way to find the user whom is to<br>
>> create this database?<br>
>><br>
>> --- SNIP<br>
>> 18:35:35,069 ERROR Dez 18, 2013 6:35:35 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: DELETE FROM GEOMETRY_COLUMNS WHERE f_table_catalog='' AND<br>
>> f_table_schema = 'public'AND f_table_name = 'npp';<br>
>> --- SNAP<br>
>> They want to delete datasets, but fail. Access rights wrong? Wrong<br>
>> user? Which user was intended? Which user was used? Or -- is this<br>
>> database not enabled to use postgis??<br>
>><br>
>> --- SNIP<br>
>> 18:35:35,080 ERROR Dez 18, 2013 6:35:35 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: INSERT INTO GEOMETRY_COLUMNS VALUES<br>
>> ('','public','npp','the_geom',2,4326,'POINT');<br>
>><br>
>> 18:35:35,089 ERROR Dez 18, 2013 6:35:35 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: ALTER TABLE "public"."npp" ADD CONSTRAINT<br>
>> enforce_srid_the_geom CHECK (SRID(the_geom) = 4326);<br>
>><br>
>> 18:35:35,097 ERROR Dez 18, 2013 6:35:35 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: ALTER TABLE "public"."npp" ADD CONSTRAINT<br>
>> enforce_dims_the_geom CHECK (ndims(the_geom) = 2);<br>
>><br>
>> 18:35:35,123 ERROR Dez 18, 2013 6:35:35 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: ALTER TABLE "public"."npp" ADD CONSTRAINT<br>
>> enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text<br>
>> OR the_geom IS NULL);<br>
>><br>
>> 18:35:35,133 ERROR Dez 18, 2013 6:35:35 PM<br>
>> org.geotools.data.postgis.PostgisDataStore createSchema<br>
>> Information: CREATE INDEX "spatial_npp_the_geom" ON "public"."npp"<br>
>> USING GIST ("the_geom");<br>
>> --- SNAP<br>
>><br>
>> Maybe someone 's got an idea how to find out what was going on here!<br>
>><br>
>> --<br>
>> Thomas<br>
>> _______________________________________________<br>
>> postgis-users mailing list<br>
>> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
<br>
<br>
<br>
--<br>
Thomas<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a></div></div></blockquote></div><br></div>