FUNC
314 extensionsFunctions
- pg_idkit
multi-tool for generating new/niche universally unique identifiers (ex. UUIDv6, ULID, KSUID)
- pgx_ulid
ulid type and methods
- pg_uuidv7
Create UUIDv7 values in postgres
- pg_uuid_v8
UUID v8 generator with embedded timestamps for PostgreSQL
- permuteseq
Pseudo-randomly permute sequences with a format-preserving encryption on elements
- pg_hashids
Short unique id generator for PostgreSQL, using hashids
- pg_slug_gen
Generate cryptographically secure timestamp-based slugs
- sequential_uuids
generator of sequential UUIDs
- typeid
Allows to use TypeIDs in Postgres natively
- snowflake
Snowflake-style 64-bit ID generator and sequence utilities for PostgreSQL
- topn
type for top-n JSONB
- quantile
Quantile aggregation function
- lower_quantile
Lower quantile aggregate function
- count_distinct
An alternative to COUNT(DISTINCT …) aggregate, usable with HashAggregate
- omnisketch
data structure for on-line agg of data into approximate sketch
- ddsketch
Provides ddsketch aggregate function
- vasco
discover hidden correlations in your data with MIC
- xicor
XI Correlation Coefficient in Postgres
- weighted_statistics
High-performance weighted statistics functions for sparse data
- pg_statkit
Descriptive statistics and clinical effect-size functions over arrays
- datasketches
Approximate analytics sketches and aggregates for PostgreSQL
- fbsql
Closure-preserving formula-based statistical modeling in SQL
- tdigest
Provides tdigest aggregate function.
- hdr_histogram
HDR histogram type, percentile queries and mergeable aggregation.
- first_last_agg
first() and last() aggregate functions
- extra_window_functions
Extra Window Functions for PostgreSQL
- floatvec
Math for vectors (arrays) of numbers
- aggs_for_vecs
Aggregate functions for array inputs
- aggs_for_arrays
Various functions for computing statistics on arrays of numbers
- argm
argmax, argmin, and anyold aggregate functions
- pg_csv
Flexible CSV processing for Postgres
- arraymath
Array math and operators that work element by element on the contents of arrays
- pg_math
GSL statistical functions for postgresql
- random
random data generator
- base36
Integer Base36 types
- base62
Base62 extension for PostgreSQL
- pg_base58
Base58 Encoder/Decoder Extension for PostgreSQL
- financial
Financial aggregate functions
- pg_accumulator
Accumulation registers for balance and turnover tracking in PostgreSQL
- convert
conversion functions for spatial, routing and other specialized uses
- pg_try_cast
Text conversion with NULL or a typed fallback on conversion errors.
- parray_gin
GIN index operator class and partial-match operators for text arrays
- refint
functions for implementing referential integrity (obsolete)
- autoinc
functions for autoincrementing fields
- insert_username
functions for tracking who changed a table
- moddatetime
functions for tracking last modification time
- tsm_system_time
TABLESAMPLE method which accepts time in milliseconds as a limit
- dict_xsyn
text search dictionary template for extended synonym processing
- tsm_system_rows
TABLESAMPLE method which accepts number of rows as a limit
- tcn
Triggered change notifications
- uuid-ossp
generate universally unique identifiers (UUIDs)
- btree_gist
support for indexing common datatypes in GiST
- btree_gin
support for indexing common datatypes in GIN
- intarray
functions, operators, and index support for 1-D arrays of integers
- intagg
integer aggregator and enumerator (obsolete)
- dict_int
text search dictionary template for integers
- unaccent
text search dictionary that removes accents
- pg_blkchain
C extension providing Bitcoin blockchain parsing and helper functions for PostgreSQL.
- adaptive_counter
Aggregation functions and data type for distinct estimation based on adaptive sampling.
- bitmap_counter
Aggregation functions and data type for distinct estimation based on s-bitmap.
- hyperloglog_counter
Aggregation functions and data type for distinct estimation based on HyperLogLog.
- loglog_counter
Aggregation functions and data type for distinct estimation based on LogLog.
- pcsa_counter
Aggregation functions and data type for distinct estimation based on PCSA.
- probabilistic_counter
A C data type and aggregates for approximate distinct counting using the Flajolet-Martin probabilistic counting algorithm.
- superloglog_counter
C data type, functions, and aggregates for approximate distinct counting with the SuperLogLog algorithm.
- weighted_mean
Weighted average aggregate function for PostgreSQL numeric values.
- pg_ulid
Generate ULID strings in PostgreSQL with a C function.
- pg_xid
PostgreSQL extension exposing xid generation functions
- range_agg
range_agg: merge adjacent or overlapping PostgreSQL range values
- uids
PostgreSQL extension to generate various types of universally unique IDs
- pg_normalize_query
Normalize constants in SQL statements using PostgreSQL parser logic
- json_build
C functions and aggregate helpers for building complex PostgreSQL JSON objects and arrays.
- jsonbx
Jsonb extension functions for PostgreSQL 9.4
- jsonknife
Useful jsonb inspection and transformation functions
- bitstring_helpers
Helper C functions and aggregates for PostgreSQL bit varying data.
- median
Median aggregate function for input sets
- fhir_jsonb
Synthetic FHIR JSONB data generator and query benchmark fixture for PostgreSQL.
- trimmed_aggregates
C aggregate functions that discard configurable low/high outliers before computing averages, variances, and standard deviations.
- vectoragg
Float-array range sum, clamp, and decimation functions
- frkn_avg
C aggregate extension providing my_avg for bigint and floating-point inputs.
- fibonacci
Fibonacci extension for PostgreSQL.
- fnvhash
FNV hash functions for PostgreSQL.
- generate_date_series
generate_series()-style set-returning function for date ranges with integer day steps.
- colors
C functions for perceptual color-distance calculations in the CIE L*a*b* color space
- hash64
Stable 64-bit hash function whose results do not change across PostgreSQL major versions.
- nextid
Generate Instagram-style sharded integer IDs.
- sum_array
C function that sums PostgreSQL integer and floating-point arrays into float8.
- array_textsort
C functions for sorting and de-duplicating one-dimensional text arrays.
- pg_gen_uid
Adds a PL/pgSQL function that generates random lowercase alphanumeric identifiers using pgcrypto.
- pg_gsl
Wraps selected GNU Scientific Library routines, including real FFT transforms and helper functions, for PostgreSQL.
- kissfft
Fast-Fourier transformer (fft)
- pgflake
Extension for fdw memory
- libuuid
Generate UUIDs through the system libuuid library
- pcg_random
PCG pseudo-random number generator functions for PostgreSQL.
- cidr
Transform an IPv4 or IPv6 address range into the minimal set of CIDR blocks
- fast_guid
Fast GUID generator function for PostgreSQL.
- safecast
Pure-SQL helper functions that return NULL for some invalid text-to-number casts.
- tanimoto
Fast C implementation of the Tanimoto similarity coefficient for PostgreSQL bit-varying fingerprints.
- pg_strverscmp
Natural-sort comparison functions, text operators, and a btree operator class based on a strverscmp-like order.
- popcount
provide population-count functions for PostgreSQL bit(n) values
- units
Unit conversion table and PL/pgSQL conversion function for length units.
- uuid-freebsd
UUID generation functions for PostgreSQL on FreeBSD.
- validadores
Brazilian CPF check-digit validator, operator, and domain
- pg_libnumbertext
Converts numbers to words in multiple languages through libnumbertext.
- recommend
Experimental C extension providing scalar distance, text similarity, and one-dimensional array similarity functions derived from smlar.
- pg_array_multi_index
simultaneous multiple-indexing of PostgreSQL arrays
- numpgsql
Array and numerical computing library for PostgreSQL
- calculate_markup
C function that calculates a price markup percentage by linear interpolation over a numeric price/markup array.
- cms_topn
Count-min sketch data type and aggregates for approximate frequency and top-N queries
- format
A string formatting function which takes named parameters
- format_x
Polymorphic variadic string formatting with named lookups into composite, JSONB, and HSTORE values.
- get_sum
simple sum of two integers for postgres externsion using c
- jsonb_set_lax
Backport of PostgreSQL 13 jsonb_set_lax for PostgreSQL 9.5 through 12
- jsonfun
Extract JSON values by variadic dot-delimited key paths
- binvec
C helper for summing integer bit values into arrays
- merge_ips
Functions to merge IP addresses, ignoring gaps
- pg_aa
ASCII art extension for PostgreSQL
- pg_algorithms
C extension that adds example algorithm functions, including bubble sort and quicksort for integer arrays.
- pg_calcpi
Computes digits of pi in PostgreSQL with a PL/pgSQL spigot algorithm.
- pg_elephant
Toy example extension exposing a pg_elephant() function that returns ASCII elephant text.
- pg_etag
Fast ETag generation for rows and result sets using BLAKE2 hashes, with single-input functions and aggregates.
- jsonb_extend
Merge two or more jsonb values
- jsonb_delete
hstore-style delete function and operator for jsonb
- jsonb_delete_array
Delete jsonb keys or string elements listed in a text array
- jsonb_explorer
Inspect jsonb trees and paths
- jsonb_extra
Extra JSONB functions
- json_query
Generate PostgreSQL WHERE clause predicates from JSONB filter objects.
- json_utils
JSON type helper functions, operators, and a hash operator class for PostgreSQL 9.2+.
- pg_median_utils
Median filter and iterative median filter window functions for PostgreSQL
- pg_random_string
Generates an alphanumeric string of a requested length with a C function.
- jsonb_opx
hstore-style functions and operators for jsonb
- gcd
C function that computes the greatest common divisor of an integer array.
- pg_hist
Compute fast weighted or unweighted histograms in one or more dimensions.
- pg_slugify
Normalize text into URL-friendly slugs with unaccent
- pg_string_extension
C string helpers for palindrome checks, anagram checks, and character sorting.
- pghll
Provides HyperLogLog decode, cardinality, merge, and aggregate functions compatible with Java stream-lib counters.
- pg_ta
TA-Lib technical-analysis functions exposed as PostgreSQL functions
- psl
Returns the registrable domain for a hostname using a compiled-in Public Suffix List.
- vihash
version-independent hash functions
- pg_variant_functions
Variant summary and allele-frequency functions over TINYINT[] genotype arrays
- pgaut
Auto Update Timestamp for PostgreSQL
- randomstring
randomstring: generate pseudo-random text and bytea values
- rpg
R-inspired PL/pgSQL data manipulation functions.
- shbf
C extension providing Bloom filter, shifting Bloom filter, and count-min sketch PostgreSQL data types and functions.
- srf
Minimal C example implementing an inclusive integer set-returning function.
- pgstrtranslate
Adds multi-character string replacement and text-array element removal functions.
- unnest_ordinality
Legacy array unnest function that returns each element with its ordinal position.
- yeti
helper functions for YETI project
- cmath
C11 math functions exposed to PostgreSQL with C-backed implementations.
- pltoolbox
provide C utility functions for PostgreSQL stored procedures
- tm_postgres_basics
PL/pgSQL helper functions for resolving relation OIDs and traversing table inheritance.
- translate_isbn
C function that converts text ISBN codes between ISBN-10 and ISBN-13 forms for Evergreen-compatible search expansion.
- pg_sqids
Encode numbers as short URL-safe Sqids and decode them in PostgreSQL
- eva_pg
EVA ICS pgrx extension for the EVA industrial IoT platform.
- pgrx_validation
Cross-target Rust validation library compiled as PostgreSQL functions through an optional pgrx feature.
- pgfaker
Generates fake company, person, internet, and phone data in PostgreSQL for tests, performance testing, and demos.
- pg_ethopic
Format Ethiopic dates and numbers in PostgreSQL.
- pg_bedtools_rs
A PostgreSQL plugin for bedtools, implemented in Rust.
- wrapper_deltalake
Unfinished pgrx hello-world prototype originally planned as a Delta Lake foreign data wrapper.
- pg_str
Add Laravel-inspired string manipulation functions to PostgreSQL using pgrx
- kq_fx
ketteQ, Inc.
- pg_open_meteo
Prototype Rust/pgrx PostgreSQL extension associated with Open-Meteo weather data.
- pgx_uuidv7
A PostgreSQL extension to generate and cast v7 UUIDs
- utils
Minimal C extension example providing integer addition and multiplication functions.
- replace_string
Rust/pgrx function for literal string replacement
- pgcuid2
Generate CUID2 text identifiers inside PostgreSQL using the cuid2 Rust crate.
- pg_row_hashes
Computes deterministic row fingerprints, checksums, and XOR aggregates with SeaHash and FarmHash variants.
- pgrx_jsonb
Proof-of-concept pgrx functions for iterating PostgreSQL JSONB internals and reconstructing JSON values
- pg_snowflake_id
Snowflake-style 64-bit ID generator for PostgreSQL implemented with pgrx
- pgrand
Generates random test data through a PostgreSQL FDW, with an experimental table access method.
- pg_snowid
Generate thread-safe, time-sorted Snowflake-like IDs in PostgreSQL
- pksuid
generate prefixed, sortable KSUID identifiers in PostgreSQL
- htc
Horvitz-Thompson continuous-population estimator functions for PostgreSQL.
- jsonb_deep_sum
Recursively sum numeric fields in JSONB objects
- natord_pg
Natural-order comparison operators and btree operator class for PostgreSQL text values.
- nfiesta
PostgreSQL extension implementing nFIESTA forest inventory estimation functionality.
- nfiesta_sdesign
PostgreSQL extension for manipulating sampling design data.
- pg_ortools
Constraint optimization extension using the HiGHS MIP/LP solver from PostgreSQL, with optional async execution.
- pg_testgen
Generate random integers, strings, and test-data rows for PostgreSQL development
- proven
proven: PostgreSQL C bindings for formally verified safety functions from libproven
- short_ids
PL/pgSQL generator for short random text IDs with collision checks and transaction advisory locks.
- stringtheory
C++ extension providing SIMD-optimized exact equality and substring-search functions for PostgreSQL text values.
- varbitx
Alibaba Cloud RDS bitmap function extension for additional varbit operations
- pg_normalize_email
Normalize email addresses in PostgreSQL
- uuidv7-sql
Pure SQL and PL/pgSQL functions for generating, inspecting, and transforming UUID version 7 values.
- pg_natural_sort_order
Natural sort ordering support through a C normalization function usable with indexes.
- acoustid
PostgreSQL extension for working with AcoustID fingerprints
- aggs
Testing aggregation functions
- alohadb_approx
Approximate query processing: HLL, Count-Min Sketch, Top-K
- approx_count
Fast approximate row counts for tables and indexes in PostgreSQL 14+ from pg class.reltuples, with a governed ANALYZE refresh
- array_concat
aggregates and functions for PostgreSQL Server
- auto_counters
PostgreSQL extension for automatic contextual numbering
- bgvalidators
Validation functions for IBAN, Bulgarian EGN personal IDs, BULSTAT VAT numbers, and LNCh foreigner IDs.
- bigintarray
Postgres extension like intarray, but for bigints
- bobbie@hello
An extension to generate greetings
- capitalize
A function to capitalize all the given character
- cem-uuidv7
UUIDv7 extension
- check_digits
Functions to check various identification numbers
- composite
aggregates and functions for PostgreSQL Server
- count_char
aggregates and functions for PostgreSQL Server
- count_nulls
Count the number of null arguments
- countnulls
Simple function to count the number of NULL arguments
- db_assist
Minimal pgrx training extension exposing a hello_db_assist function.
- dbstats
Descriptive statistics and data quality analysis for PostgreSQL
- dev@tienlen_validation
Tien Len validation functions for game server
- exploring_aggregates
pgrx example defining a custom integer-sum aggregate with serialized state.
- fakeset
postgres extension to generate fake sentences
- first_last
Aggregate functions to return first or last "n" elements in a group
- generate_up_down_series
PostgreSQL Up Down Sequence
- get_column
Fetch a column value from a record by name
- godel_logic
Provides operators to evaluate fuzzy logic expressions according to Gödel logic.
- graph_component
Compute graph components
- hello_pg
Minimal pgrx hello-world extension used to reproduce a macOS build issue.
- hello_world
A simple hello-world Postgres extension using sql/plpgsql implementing a russian roulette function.
- helloworldtable
pgrx example returning a one-row table containing a Hello World greeting.
- I4R_AUDB_extension
AUDB operations for PostgreSQL int4range values.
- insert_array
aggregates and functions for PostgreSQL Server
- json_accessors
JSON accessor functions
- kiwicopple-is_even
Calculates if a value is even.
- launchql-inflection
inflection is a port of the functionality from Ruby on Rails' Active Support Inflection classes into PostgreSQL
- launchql-stamps
Trigger functions for timestamp and actor tracking.
- lukasiewicz_logic
Provides operators to evaluate fuzzy logic expressions according to Łukasiewicz logic.
- manip
Various manipulation functions
- mean
aggregates and functions for PostgreSQL Server
- memvol
Memory units
- min_to_max
aggregates and functions for PostgreSQL Server
- moss_uuidgen
Generates UUIDs for moss. We use this because there was no UUID type when moss was written, and I do not want to rewrite moss to use pgsql's uuid type
- mtm
aggregate to find min and max
- pbloompg
portable bloom filter, create, serialize, query across Go, Rust, Postgres
- pg_cext
A PostgreSQL extension to add two numbers
- pg_jewelry_tools
An extension for PSQL with useful functionality for jewelry companies. So far, this is a project created for educational purposes.
- pg_jsonpatch
PostgreSQL implementation of JSON Patch
- pg_kalman
A Kalman filter extension for PostgreSQL.
- pg_linearAlgebra
A linear algebra extension
- pg_luhn
Luhn checksum, validation, and check-digit generation functions.
- pg_meritrank
The extension provides functionality for computing and ranking a merit in a Postgres database.
- pg_pagination
Rust functions for cursor- and offset-based pagination with JSON results.
- pg_plpgsql_ext
A PostgreSQL extension with a PL/pgSQL function to subtract numbers
- pg_purr
A PostgreSQL extension (via PL/Python) that brings quantum computing capabilities.
- pg_py_ext
A PostgreSQL extension using PL/Python3U to add numbers
- pg_rand_ext
Functions that generate random values for PostgreSQL
- pg_rowalesce
rowalesce() is like coalesce(), but for rows and other composite types.
- pg_running_stats
Mergeable Running Statistics (Welford/Chan) Extension for PostgreSQL
- pg_sample_ext
A Sample PostgreSQL extension
- pg_sequence
ERP document numbering with formatted, scoped, auto-incrementing sequences
- pg_url
Implements URL handling methods as postgres extension
- pg_uuid
generator of new UUID versions
- pg_uuid_next
Implementation of UUID v7 and v8 IETF drafts
- pgmcisid
MCIS ID V1 generator
- pgorpy
OR-tools python accessible from the database
- pgpm-faker
SQL functions and dictionaries for generating synthetic test data.
- pgpm-inflection
String inflection, naming-convention and slug conversion functions.
- product_logic
Provides operators to evaluate fuzzy logic expressions according to product logic.
- pyramid_generate
Generate uniformly distributed random float8 vectors by dimension and size
- random_bytea
scrap code and various bug test cases for linking from bugtrackers
- range_tools
Tools for use with range types
- range_type_functions
Functions for enhancing range type functionality.
- rotate_array
aggregates and functions for PostgreSQL Server
- session_hash_tools
Functions to store nested hashes in PL/Perl shared hash
- slugify
PostgreSQL Extension to generate various variant of Slugs from a string.
- split_composite
aggregates and functions for PostgreSQL Server
- spqrhash
Murmur3 and City hash functions for PG
- tagext
Tag Programming Example Extension
- talib_ext
postgres extension to do technical analysis on postgres
- text_funcs
Tutorial 3 text functions
- tuid
tuid datatype
- verhoeff
Implement a Postgres Extension for Verhoeff Algorithm
- weighted_stats
Weighted aggregate functions
- world
pgrx tutorial functions for multilingual hello-world greetings.
- xata_id_extension
Generate Xata-style rec_ identifiers with a 20-character lowercase alphanumeric suffix.
- xataid_extension
Generate Xata-style rec_ identifiers with a 20-character lowercase alphanumeric suffix.
- fft_approximate
FFT-based approximate aggregate range queries over time-series data.
- pg_bitcount
Bit-count scalar and aggregate functions for integers and bit strings.
- pg_climb
Rock-climbing grade conversion and utility functions.
- pg_num2int_direct_comp
Exact numeric/float-to-integer comparison operators that preserve index use.
- philihp@pg_openskill
OpenSkill Plackett-Luce ratings as a database.dev TLE package.
- unique_id
Time-based K-sorted unique identifier generators inspired by Instagram and Sonyflake designs.
- clocks
C helpers for CRDV vector clocks and hybrid logical clocks
- idgenkit
ULID, UUIDv7, relative ID, Snowflake and Nano ID generators
- pgquant
Quantitative finance returns, risk, volatility, covariance and factor construction
- pg_bio
Experimental molecular, sequence and bioinformatics SQL primitives.
- pg_currency
Currency catalogs and dated base-relative exchange rates.
- pg_uom
Unit conversions with dimensional and affine checks.
- pg_image
Image metadata, transforms, perceptual hashes and optional ONNX inference.
- provector
C++ PostgreSQL extension example exposing a title-case text function
- uuid_bytea
Convert PostgreSQL UUID values to and from 16-byte binary values
- jsondiff
Compute shallow set/unset differences between JSONB objects
- uuid_v7
PL/Rust trusted-language example for timestamp-based UUID v7 values
- errors
Structured PostgreSQL exceptions with JSON detail
- pgpm-uuid
Pseudo-ordered and seed-prefixed UUID utilities
- launchql-uuid
Historical LaunchQL pseudo-ordered UUID utilities
- launchql-faker
Historical SQL generators for synthetic test data
- sha256_agg
Ordered SHA-256 aggregation over logical PostgreSQL rows.
- pgpm-stamps
Timestamp and actor audit triggers for PGPM applications.
- inflection-db
Generate consistent SQL object names from application identifiers.
- db-utils
Recursive JSONB updates, column comments and timestamp setup helpers.
- pgpm-ltree-helpers
Convert slash paths and globs to PostgreSQL ltree values.
- pgpm-utils
String/bit padding and application trigger utilities for PGPM.
- max2min
Format aggregate maximum and minimum as text
- gp_array_agg
Parallel array aggregation for Greenplum
- gp_percentile_agg
Ordered-set aggregate support for the Greenplum optimizer
- pgbloomfun
Scalable Bloom-filter functions operating on byte arrays
- jsonvd
JSONB path search, diff, deep merge and type inference
- tofu_worker_clock
Shared monotonic worker-lease clock and server epoch for ToFu
- jsonb_delta
JSONB changesets, keyed array updates and merge functions.
- pgjinja
MiniJinja template rendering with JSONB contexts and stored templates.
- sc_pglib
Expose simply-cpp utilities, server files and external service integrations in PostgreSQL.
- pg_array_utils
Polymorphic array flattening, chunking, zipping, padding and slicing functions.
- pg_array_math
Elementwise arithmetic and mathematical functions for one-dimensional numeric arrays.
- pg_chart
AlohaDB: SVG charts rendered from SQL query results
- pg_compat19
AlohaDB: SQL compatibility helpers for the AlohaDB PostgreSQL 18 base
- bytea_unzip
Read ZIP archives and ODS data from bytea
- pgpm-pg18-shim
Opt-in SQL UUIDv7 fallback that preserves existing native functions
- aoc
Bigint product aggregate for Advent of Code SQL puzzles