babelfishpg_common
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
babelfish | 5.5.0 | SIM | Apache-2.0 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9300 | babelfishpg_common | No | Yes | No | Yes | No | Yes | - |
| 9310 | babelfishpg_tsql | No | Yes | No | Yes | No | Yes | - |
| 9320 | babelfishpg_tds | No | Yes | Yes | Yes | No | Yes | - |
| 9330 | babelfishpg_money | No | Yes | No | Yes | Yes | No | - |
| Related | tds_fdw babelfishpg_tds babelfishpg_money pg_hint_plan uuid-ossp session_variable orafce pgtt |
|---|---|
| Depended By | babelfishpg_tsql |
special case: this extension only works on wiltondb kernel fork
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 5.5.0 | 1817161514 | babelfish | - |
| RPM | PIGSTY | 5.5.0 | 1817161514 | babelfish_$v | babelfishpg_$v, antlr4-runtime413 |
| DEB | PIGSTY | 5.5.0 | 1817161514 | babelfishpg-$v-babelfish | babelfishpg-$v, libantlr4-runtime413 |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 el8.x86_64.pg17 : babelfish_17 babelfish_17-5.5.0-1PIGSTY.el8.x86_64.rpm
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el8.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 el8.aarch64.pg17 : babelfish_17 babelfish_17-5.5.0-1PIGSTY.el8.aarch64.rpm
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el9.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 el9.x86_64.pg17 : babelfish_17 babelfish_17-5.5.0-1PIGSTY.el9.x86_64.rpm
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el9.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 el9.aarch64.pg17 : babelfish_17 babelfish_17-5.5.0-1PIGSTY.el9.aarch64.rpm
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el10.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 el10.x86_64.pg17 : babelfish_17 babelfish_17-5.5.0-1PIGSTY.el10.x86_64.rpm
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el10.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 el10.aarch64.pg17 : babelfish_17 babelfish_17-5.5.0-1PIGSTY.el10.aarch64.rpm
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d12.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 d12.x86_64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~bookworm_amd64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d12.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 d12.aarch64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~bookworm_arm64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d13.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 d13.x86_64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~trixie_amd64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d13.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 d13.aarch64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~trixie_arm64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u22.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 u22.x86_64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~jammy_amd64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u22.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 u22.aarch64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~jammy_arm64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u24.x86_64 | PIGSTY MISS | PIGSTY 5.5.0 u24.x86_64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~noble_amd64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u24.aarch64 | PIGSTY MISS | PIGSTY 5.5.0 u24.aarch64.pg17 : babelfishpg-17-babelfish babelfishpg-17-babelfish_5.5.0-2PIGSTY~noble_arm64.deb
| PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
Build
You can build the RPM / DEB packages for babelfish using pig build:
pig build pkg babelfish # build RPM / DEB packages
Install
You can install babelfish directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
pig repo add pgsql -u # Add repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install babelfish; # Install for current active PG version
pig ext install -y babelfish -v 17 # PG 17
dnf install -y babelfish_17 # PG 17
apt install -y babelfishpg-17-babelfish # PG 17
Create Extension:
CREATE EXTENSION babelfishpg_common;
Usage
babelfishpg_common: SQL Server Transact SQL Datatype Support
The babelfishpg_common extension provides SQL Server-compatible data type support for PostgreSQL as part of the Babelfish project. It enables PostgreSQL to understand and work with Microsoft SQL Server data types.
Enabling
CREATE EXTENSION babelfishpg_common;
SQL Server Data Types
The extension adds the following SQL Server-compatible data types:
- TINYINT - 1-byte unsigned integer (0 to 255)
- SMALLMONEY - Small monetary value
- MONEY - Monetary value (see also
babelfishpg_money) - DATETIME - SQL Server-style datetime
- DATETIME2 - Extended precision datetime
- SMALLDATETIME - Reduced precision datetime
- DATETIMEOFFSET - Date and time with timezone offset
- BIT - SQL Server-compatible boolean
- NCHAR / NVARCHAR - Unicode character types
- UNIQUEIDENTIFIER - SQL Server-style UUID
- VARBINARY - Variable-length binary data
- IMAGE - Legacy binary data type
- SQL_VARIANT - Generic data type container
- XML - SQL Server-compatible XML type
- SYSNAME - System name type (nvarchar(128))
Key Features
- Provides implicit and explicit type casting between SQL Server and PostgreSQL types
- Supports SQL Server-style collation behavior
- Handles SQL Server-specific type coercion rules
- Works in conjunction with
babelfishpg_tsqlfor full T-SQL compatibility
This extension is typically deployed as part of a full Babelfish for PostgreSQL installation and is a prerequisite for babelfishpg_tsql.
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.