Important tips related to Postgres connection (Postgre version 9)<br />For error FATAL: 28000: no pg_hba.conf entry for host (SSL of) on the machine where mapserver is installed, following line needs to be inserted in “pg_hba.conf” file (location: Postgres installed directory. Default is “C:\Program Files\PostgreSQL9\data)in which Postgres 9 has been installed :

Important tips related to postgres connection

  • 1.
    Important tips relatedto Postgres connection (Postgre version 9)<br />For error FATAL: 28000: no pg_hba.conf entry for host (SSL of) on the machine where mapserver is installed, following line needs to be inserted in “pg_hba.conf” file (location: Postgres installed directory. Default is “C:\Program Files\PostgreSQL9\data)in which Postgres 9 has been installed :
  • 2.
    # TYPE DATABASE USER CIDR-ADDRESS METHOD
  • 3.
    host all all ipadress/32 md5Note: Here ipadress is the IP address of the machine in which mapserver has been installed.<br />Table name in Postgre should either be in small letters or with underscore sign. Found issue while selecting data from STREETNETWORK table.
  • 4.
    Select * fromSTREETNETWORK : Error. Have to give the table name in “” like
  • 5.
    Select * from“STREETNETWORK”
  • 6.
    So renamed thetable name to streetnetwork and the following query worked:
  • 7.
    Select * fromstreetnetwork