[GRASS-dev] [GRASS GIS] #2385: v.in.ogr doesn't use information from dblogin file about external PostgreSQL server

GRASS GIS trac at osgeo.org
Fri Aug 1 01:04:18 PDT 2014


#2385: v.in.ogr doesn't use information from dblogin file about external
PostgreSQL server
-------------------------------------------------------+--------------------
 Reporter:  hemeybo                                    |       Owner:  grass-dev@…              
     Type:  defect                                     |      Status:  new                      
 Priority:  normal                                     |   Milestone:  7.0.0                    
Component:  Database                                   |     Version:  svn-releasebranch70      
 Keywords:  v.in.ogr PostgreSQL db.login db.databases  |    Platform:  Linux                    
      Cpu:  x86-64                                     |  
-------------------------------------------------------+--------------------

Comment(by hemeybo):

 Unfortunately, there is not much improvement. The error moved on from
 "Unable to list databases" to "Unable to open data source" with the
 correct connection details. Here the new error message:

 v.in.ogr dsn=PG: layer=bfn.nw_buk1000 output=nw_buk1001
 ERROR 1: PQconnectdb failed.
 could not connect to server: No such file or directory
     Is the server running locally and accepting
     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

 ERROR: Unable to open data source
        <PG:dbname=host=134.110.32.101,dbname=gis>

 It seems like the dsn is not created properly - the first "dbname=" is
 wrong, in my opinion.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2385#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list