TDS information:
tds_fdw compiled from git:
* master 210299b Merge pull request #173 from laurenz/standby
RDBMS:
postgres=# select version();
version
-----------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 10.5 (Ubuntu 10.5-1.pgdg14.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4, 64-bit
(1 row)
postgres=# \dx
List of installed extensions
Name | Version | Schema | Description
---------+---------------+------------+-----------------------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
tds_fdw | 2.0.0-alpha.2 | public | Foreign data wrapper for querying a TDS database (Sybase or Microsoft SQL Server)
(2 rows)
Freetds:
$ apt list --installed | grep tds
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
freetds-bin/trusty,now 0.91-5 amd64 [installed]
freetds-common/trusty,now 0.91-5 all [installed]
freetds-dev/trusty,now 0.91-5 amd64 [installed]
tdsodbc/trusty,now 0.91-5 amd64 [installed]
select from foreign table fails if there is predicate on column data type ASE - binary, foreign table BYTEA.
Same test different syntax:
when casted to text (suitable for small tables only)
Another approach:
testcase information:
Table definition:
TDS information: tds_fdw compiled from git:
* master 210299b Merge pull request #173 from laurenz/standby
RDBMS:
Freetds: