Previously, using COPY FROM on a table with RLS enabled would throw an error
(ERROR: COPY FROM not supported with row-level security), with a HINT: ``HINT:
Use INSERT statements instead.``
Now it's fully supported, it will be just equivalent to INSERT.
COPY FROM typically prints context information detailing the exact line where an
error occurred, we have opted to suppress this CONTEXT line for RLS policy
violations. This change ensures that our error reporting remains consistent with
how RLS errors are handled elsewhere in the system.
discussion: https://postgr.es/m/CACJufxFbmnoa5O-vL43DPTCGt6oagY4dXgKxy=rcD9-e9g0zEg@mail.gmail.com
commitfest: https://commitfest.postgresql.org/patch/6178