mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Message style fix
from Euler Taveira
This commit is contained in:
parent
5be5b5029f
commit
c5ec406412
@ -874,7 +874,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString, uint64 *processed)
|
|||||||
if (is_from)
|
if (is_from)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
errmsg("COPY FROM not supported with row-level security."),
|
errmsg("COPY FROM not supported with row-level security"),
|
||||||
errhint("Use INSERT statements instead.")));
|
errhint("Use INSERT statements instead.")));
|
||||||
|
|
||||||
/* Build target list */
|
/* Build target list */
|
||||||
|
@ -2674,7 +2674,7 @@ COPY copy_t FROM STDIN; --fail - insufficient privilege to bypass rls.
|
|||||||
ERROR: insufficient privilege to bypass row-level security
|
ERROR: insufficient privilege to bypass row-level security
|
||||||
SET row_security TO ON;
|
SET row_security TO ON;
|
||||||
COPY copy_t FROM STDIN; --fail - COPY FROM not supported by RLS.
|
COPY copy_t FROM STDIN; --fail - COPY FROM not supported by RLS.
|
||||||
ERROR: COPY FROM not supported with row-level security.
|
ERROR: COPY FROM not supported with row-level security
|
||||||
HINT: Use INSERT statements instead.
|
HINT: Use INSERT statements instead.
|
||||||
-- Check COPY FROM as user with permissions and BYPASSRLS
|
-- Check COPY FROM as user with permissions and BYPASSRLS
|
||||||
SET SESSION AUTHORIZATION rls_regress_exempt_user;
|
SET SESSION AUTHORIZATION rls_regress_exempt_user;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user