Skip to main content
Changes row policy. Syntax:
RENAME TO is only accepted when the statement names exactly one policy on one table target. Packed multi-name or multi-table lists cannot include RENAME TO — rename those policies in separate statements. On that single-policy form, RENAME TO can still be combined with other alterations such as AS, USING, and TO in the same statement. Without RENAME TO, packing matches ParserRowPolicyNames: multiple names on one target, one name on multiple targets, or mixed name ON target pairs. Multi-name × multi-table (p1, p2 ON t1, t2) is not accepted. Optional ON CLUSTER applies once to the whole statement; run separate ALTER ROW POLICY statements when different clusters are required. Examples:
Last modified on August 6, 2026