rdkit
rdkit : Cheminformatics functionality for PostgreSQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2930 | rdkit | rdkit | 202609.1 |
FEAT | BSD-3-Clause | C++ |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 202609.1 |
18 17 16 15 14 | rdkit |
- |
| RPM | PIGSTY | 202609.1 |
18 17 16 15 14 | rdkit_$v |
rdkit |
| DEB | PIGSTY | 202609.1 |
18 17 16 15 14 | postgresql-$v-rdkit |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 202303.3 | PIGSTY 202303.3 | PIGSTY 202303.3 | PIGSTY 202303.3 | PIGSTY 202303.3 |
| el8.aarch64 | PIGSTY 202303.3 | PIGSTY 202303.3 | PIGSTY 202303.3 | PIGSTY 202303.3 | PIGSTY 202303.3 |
| el9.x86_64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| el9.aarch64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| el10.x86_64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| el10.aarch64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| d12.x86_64 | PIGSTY 202303.3 | PIGSTY 202303.3 | PGDG 202303.3 | PGDG 202303.3 | PGDG 202303.3 |
| d12.aarch64 | PIGSTY 202303.3 | PIGSTY 202303.3 | PGDG 202303.3 | PGDG 202303.3 | PGDG 202303.3 |
| d13.x86_64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| d13.aarch64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| u22.x86_64 | PIGSTY 202303.3 | PIGSTY 202303.3 | PGDG 202303.3 | PGDG 202303.3 | PGDG 202303.3 |
| u22.aarch64 | PIGSTY 202303.3 | PIGSTY 202303.3 | PGDG 202303.3 | PGDG 202303.3 | PGDG 202303.3 |
| u24.x86_64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| u24.aarch64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| u26.x86_64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
| u26.aarch64 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 | PIGSTY 202609.1 |
Source
github.com/rdkit/rdkit
rdkit-Release_2026_09_1.tar.gz better-enums-0.11.3-enum.h RingDecomposerLib-1.1.3_rdkit.tar.gz rdkit_202303.3.orig.tar.xz rdkit_202303.3-3.pgdg120+1.dsc rdkit_202303.3-3.pgdg120+1.debian.tar.xz rdkit_202303.3-3.pgdg22.04+1.dsc rdkit_202303.3-3.pgdg22.04+1.debian.tar.xz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
rdkit provides molecular types, substructure search, fingerprints and chemical descriptors. This page follows the PostgreSQL cartridge shipped in RDKit 2026.03.6.
Create The Extension
The cartridge adds chemistry-specific types including mol, bfp, and sfp.
Core Search Operators
The cartridge documentation covers:
@>and<@for substructure matching.@=for exact molecular equality.%,<%>, and<#>style fingerprint similarity and KNN operators for similarity search.
These are typically combined with GiST indexes over fingerprint columns.
Fingerprints And Similarity
Common fingerprint functions documented for SQL usage include morgan_fp, morganbv_fp, featmorgan_fp, rdkit_fp, atompair_fp, torsion_fp, layered_fp, and maccs_fp.
Example from the cartridge docs:
Descriptors And Validation
The cartridge docs also expose validation and descriptor helpers such as:
is_valid_smiles()is_valid_ctab()is_valid_smarts()mol_amw()mol_hba()mol_numrings()
These functions are the main user-facing surface for SQL analytics on molecular structures.
Version and Upgrade Boundary
The RDKit toolkit release 2026.03.6 contains SQL extension version 4.8.0; these are different version namespaces. The upstream 4.7.0 to 4.8.0 SQL template changes function costs, but its fmcs_smiles statement has a line comment that swallows the cost clause and terminator. Do not assume an unpatched ALTER EXTENSION rdkit UPDATE path works: verify the installed upgrade script and test the update on a restored copy first. A packaging patch is distinct from the upstream source.