rdkit
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
rdkit | 202503.6 | FEAT | BSD-3-Clause | C++ |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2930 | rdkit | No | Yes | No | Yes | No | Yes | - |
PIGSTY RPM and DEB packages provide 202503.6 for PostgreSQL 14-18; legacy 202303.3 packages remain in some repositories.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 202503.6 | 1817161514 | rdkit | - |
| RPM | PIGSTY | 202503.6 | 1817161514 | rdkit_$v | - |
| DEB | PIGSTY | 202503.6 | 1817161514 | postgresql-$v-rdkit | - |
Build
You can build the RPM / DEB packages for rdkit using pig build:
Install
You can install rdkit directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
- Sources: project README, cartridge docs, 2025.03.6 release
RDKit ships a PostgreSQL cartridge for cheminformatics storage, search, fingerprints, and descriptors. The cartridge docs remain the main upstream usage reference; the 2025.03.6 release notes do not call out cartridge-specific user-facing changes.
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.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)