- Author: Geoff Montee
- Name: tds_fdw
- File: tds_fdw/InstallOSX.md
This document will show how to install tds_fdw on OSX.
The TDS foreign data wrapper requires a library that implements the DB-Library interface, such as FreeTDS.
brew install freetds
If you need to install PostgreSQL, do so by following the apt installation directions. For example, to install PostgreSQL 9.5 on Ubuntu:
brew install postgres
Or use Postgres.app: http://postgresapp.com/
If you'd like to use one of the release packages, you can download and install them via something like the following:
wget https://github.com/tds-fdw/tds_fdw/archive/v1.0.7.tar.gz
tar -xvzf tds_fdw-1.0.7.tar.gz
cd tds_fdw-1.0.7
make USE_PGXS=1
sudo make USE_PGXS=1 install
If you would rather use the current development version, you can clone and build the git repository via something like the following:
git clone https://github.com/tds-fdw/tds_fdw.git
cd tds_fdw
make USE_PGXS=1
sudo make USE_PGXS=1 install
If this is a fresh installation, then start the server:
sudo /etc/init.d/postgresql start
psql -U postgres
postgres=# CREATE EXTENSION tds_fdw;