How to use \restrict or \unrestirct in python

ma lz <ma100@hotmail.com>

From: ma lz <ma100@hotmail.com>
To: "pgsql-general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2025-09-15T07:16:35Z
Lists: pgsql-general
To fix CVE-2025-8714, PG introduce \restrict , but if we use python ( like psycopg2), it does not support slash command.