postgresql_16:4.16.3.2 Expression Restrictions
PostgreSQL 16 > Server Administration > Logical Replication > Row Filters > Expression Restrictions
The WHERE clause allows only simple expressions. It cannot contain user-defined functions, operators, types, and collations, system column references or non-immutable built-in functions.
If a publication publishes UPDATE or DELETE operations, the row filter WHERE clause must contain only columns that are covered by the replica identity (see (see sql-altertable-replica-identity)). If a publication publishes only INSERT operations, the row filter WHERE clause can use any column.