Setting up a connection to PostgreSQL

PostgreSQL client libraries are required on the client computer from which you will connect to the database.

You can download the PostgreSQL client files from the Esri Customer Care portal and place them in the bin directory of your ArcGIS client application to allow you to connect directly to a PostgreSQL database.

There are four possible client library downloads:

To use a client on SUSE Linux, you need to install the PostgreSQL SUSE client. If your PostgreSQL database is installed on SUSE, you can copy or use FTP to move the client libraries from your PostgreSQL lib directory to your ArcGIS client bin directory. If your PostgreSQL database is installed on a different operating system, obtain the SUSE PostgreSQL client files from PGFoundry or a similar site.

To use the client libraries available on the Esri Customer Care portal, do the following:

Steps:
  1. Download the PostgreSQL client libraries from the Esri Customer Care Portal.

    Be sure to download the correct libraries for your ArcGIS client. For ArcGIS for Desktop and ArcGIS Engine, you need the 32-bit libraries. For ArcGIS for Server, you need the 64-bit client libraries.

  2. Be sure your ArcGIS client application is closed.
  3. Transfer the client files to the bin directory of your ArcGIS client installation.
    NoteNote:

    Be sure to place all the files in the bin directory. Specific versions of these files are required to connect to the database; even if you already have a different version of one of the files on your system, you still need the version of the file that you downloaded from the Esri Customer Care portal to be present in the client bin directory.

  4. If you placed the client RPMs on a Linux server, run the RPMs.
  5. Alter the PostgreSQL pg_hba.conf file on the database server to accept client connections. See the PostgreSQL documentation for information on altering the pg_hba.conf file.
  6. Restart PostgreSQL or force the postmaster to reload the pg_hba.conf file by running pg_ctl reload.
  7. Be sure users have privileges to connect to the database cluster.

    By default, Public has CONNECT privileges to the PostgreSQL database cluster; therefore, you only need to grant CONNECT to individual users if you revoked the CONNECT privilege from Public.

Related Topics

8/21/2013