chess
chess · SAN and FEN chess notation data types and functions for PostgreSQL
Overview
Usage
Sources:
chess version 1.0 defines san and fen types for chess game/move text and board positions. It also supplies B-tree comparison operators for san plus helpers that extract opening moves, reconstruct a board after a move number, or test whether a game contains an opening or board.
Example
Treat this as historical demonstration code, not a production parser. The repository has almost no user documentation or compatibility statement, and the C storage/input/output implementation embeds pointers in fixed-length values and performs unsafe fixed-size copies. Malformed or simply long input can corrupt memory or crash a backend. Do not expose it to untrusted input; isolate any evaluation and prefer a maintained chess parser with a safe, self-contained storage format.