9.1
Table Of Contents
If your application uses the JDBC driver to access a database, and you install
the application as /usr/local/lib/myapp.jar and the PostgreSQL JDBC driver
as /usr/local/pgsql/share/java/postgresql.jar, you run the application as
follows.
export
CLASSPATH=/usr/local/lib/myapp.jar:/usr/local/pgsql/share/java/postgr
esql.jar:.java MyApp
ODBC Driver
The vPostgres installation process installs the vPostgres ODBC driver. To
verify the Windows ODBC driver installation, go to Start > Administrative
Tools > Data Sources (ODBC), and click the Drivers tab. The VMware vPostgres
ODBC driver appears in the list of installed ODBC drivers.
Install the Client Tools Package
Prerequisites
Download the package. See “Client Tool Packages and Drivers,” on page 16.
The ESXi host for Data Director is up and running.
Procedure
1 Install the package.
Operating System Installation Process
Linux
Run the RPM package by using the following command.
rpm -ivh pathToClientRpms
pathToClientRpms is the full pathname of the RPM package location on your
system. The default installed location is /opt/vmware/vpostgres/9.1.
Use -Uvh instead of -ivh if you perform an upgrade.
Windows
Double-click the installer to start the installer. Accept the license agreement
and confirm the install location. Installation proceeds. The default installed
location is \Program Files\VMware\vPostgres\9.1\. If you install the
x86 vPostgres client tools on a Windows 64-bit system, the Windows installer
places the client tools in \Program Files
(x86)\VMware\vPostgres\9.1\.
2 Ensure that your PATH environment variable includes the location of the vPostgres client tools, for
example C:\Program Files\VMware\vPostgres\1.0\bin
What to do next
If you install both the x86 and the 64 bit vPostgres client tools on the system, you can add an x86 ODBC data
source. See “Add an x86 vPostgres ODBC Data Source on Windows,” on page 18.
If you are developing a custom application, relink with libpq. See “Using vPostgres libpq with Your
Application,” on page 18.
Chapter 3 vPostgres Client Tools and Libraries
VMware, Inc. 17