commit dedb1c70ac88e037b9a74aa77c33c02ea3e07933
Author: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com>
Date:   Wed Aug 12 15:43:36 2026 +0200

    Adapt tests for COPY end marker change in PG snapshot (#10440)
    
    They added a requirement for the `\.` terminator to be present even if
    the COPY command fails. Add the terminator. On the current releases, it
    leads to psql error message instead, so filter it out.

--- a/test/runner_cleanup_output.sh
+++ b/test/runner_cleanup_output.sh
@@ -26,6 +26,8 @@ sed  -E -e '/<exclude_from_test>/,/<\/ex
      -e '/Index Searches: [0-9]+/d' \
      -e '/Storage: Memory  Maximum Storage: [0-9]+kB/d' \
      -e '/Window: /d' \
+     -e '/\\\.$/d' \
+     -e '/invalid command \\\.$/d'\
      -e '/Batches: [0-9]+/d' \
      -e '/found [0-9]+ removable, [0-9]+ nonremovable row versions in [0-9]+ pages/d' | \
 grep -av 'DEBUG:  rehashing catalog cache id' | \
--- a/test/sql/rowsecurity.sql.in
+++ b/test/sql/rowsecurity.sql.in
@@ -1340,8 +1340,10 @@ COPY copy_t FROM STDIN; --ok
 SET SESSION AUTHORIZATION regress_rls_bob;
 SET row_security TO OFF;
 COPY copy_t FROM STDIN; --fail - would be affected by RLS.
+\.
 SET row_security TO ON;
 COPY copy_t FROM STDIN; --fail - COPY FROM not supported by RLS.
+\.
 
 -- Check COPY FROM as user with permissions and BYPASSRLS
 SET SESSION AUTHORIZATION regress_rls_exempt_user;
@@ -1357,8 +1359,10 @@ COPY copy_t FROM STDIN; --ok
 SET SESSION AUTHORIZATION regress_rls_carol;
 SET row_security TO OFF;
 COPY copy_t FROM STDIN; --fail - permission denied.
+\.
 SET row_security TO ON;
 COPY copy_t FROM STDIN; --fail - permission denied.
+\.
 
 RESET SESSION AUTHORIZATION;
 DROP TABLE copy_t;
