Contents
Changelog
1.0.0 — 2026-10-19
First release.
synonym.create(name, target)andsynonym.drop(name [, if_exists [, cascade]]), the equivalents of SQL Server’sCREATE SYNONYMandDROP SYNONYM.synonym.list, the equivalent ofsys.synonyms, with the status of each synonym.- Synonyms for tables, views, materialized views, partitioned tables and foreign tables, usable for SELECT,
INSERT, UPDATE, DELETE and
INSERT ... ON CONFLICT. - Kept in sync automatically with
ADD,RENAME,ALTER TYPEandDROP COLUMN, renamed and moved targets, andDROP TABLEwithoutCASCADE. - Late binding: a synonym can be created before its target exists.
- Permissions always come from the target (
security_invokerviews); creating a synonym needsCREATEon its schema andUSAGEon the target’s schema. - Supports PostgreSQL 15, 16, 17 and 18. No
shared_preload_librariesneeded.