diff options
author | John Naylor <john.naylor@postgresql.org> | 2023-04-05 14:16:19 +0700 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2023-04-05 14:21:37 +0700 |
commit | ba8fd17be04a763d0249d64f56659183ce86b1f6 (patch) | |
tree | 331c4138e7e5f21206f8a319b9c1438b985ab01b | |
parent | f7a057ac7eb1d9b2257d703b0958d82e30d17e13 (diff) |
doc: Update error messages in RLS examples
Since 8b9e9644d, the messages for failed permissions checks report
"table" where appropriate, rather than "relation".
Backpatch to all supported branches
-rw-r--r-- | doc/src/sgml/ddl.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 1f7a352a66d..fbabc904c3c 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -2456,7 +2456,7 @@ postgres=> table passwd; postgres=> set role alice; SET postgres=> table passwd; -ERROR: permission denied for relation passwd +ERROR: permission denied for table passwd postgres=> select user_name,real_name,home_phone,extra_info,home_dir,shell from passwd; user_name | real_name | home_phone | extra_info | home_dir | shell -----------+-----------+--------------+------------+-------------+----------- @@ -2466,7 +2466,7 @@ postgres=> select user_name,real_name,home_phone,extra_info,home_dir,shell fr (3 rows) postgres=> update passwd set user_name = 'joe'; -ERROR: permission denied for relation passwd +ERROR: permission denied for table passwd -- Alice is allowed to change her own real_name, but no others postgres=> update passwd set real_name = 'Alice Doe'; UPDATE 1 @@ -2475,9 +2475,9 @@ UPDATE 0 postgres=> update passwd set shell = '/bin/xx'; ERROR: new row violates WITH CHECK OPTION for "passwd" postgres=> delete from passwd; -ERROR: permission denied for relation passwd +ERROR: permission denied for table passwd postgres=> insert into passwd (user_name) values ('xxx'); -ERROR: permission denied for relation passwd +ERROR: permission denied for table passwd -- Alice can change her own password; RLS silently prevents updating other rows postgres=> update passwd set pwhash = 'abc'; UPDATE 1 |