jianhe-fun · GitHub

Commits on Aug 10, 2026

  1. COPY FROM with RLS

    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

    authored and Commitfest Bot committed

    Aug 10, 2026
    Configuration menu

    Browse the repository at this point in the history

  2. Configuration menu

    Browse the repository at this point in the history

Read the original on github.com ↗