summaryrefslogtreecommitdiff
path: root/contrib/pageinspect/btreefuncs.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-07-29 23:50:35 +0900
committerMichael Paquier <michael@paquier.xyz>2018-07-29 23:50:35 +0900
commit59eb12c9c5a5aa980ed89363d143edad712d2c1d (patch)
tree622cfa4cc4488f71d3eb9423d177e8cdce78a859 /contrib/pageinspect/btreefuncs.c
parent9f7ba88aa447a0a35006d877eec897b917d1c6c3 (diff)
Make error message of pageinspect more consistent for raw page inputs
There is a copy-paste error from bt_page_items() which got into bt_page_items_bytea(). A second message in get_raw_page_internal() was inconsistent with all the other sub-modules. Author: Ashutosh Sharma Discussion: https://postgr.es/m/CAE9k0PnZuZ3PVXSyQY91-53E8JKFcaSyknFqqU43r9MabKSYZA@mail.gmail.com
Diffstat (limited to 'contrib/pageinspect/btreefuncs.c')
-rw-r--r--contrib/pageinspect/btreefuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pageinspect/btreefuncs.c b/contrib/pageinspect/btreefuncs.c
index 90acf6a4b6d..184ac62255c 100644
--- a/contrib/pageinspect/btreefuncs.c
+++ b/contrib/pageinspect/btreefuncs.c
@@ -429,7 +429,7 @@ bt_page_items_bytea(PG_FUNCTION_ARGS)
if (!superuser())
ereport(ERROR,
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- (errmsg("must be superuser to use pageinspect functions"))));
+ (errmsg("must be superuser to use raw page functions"))));
if (SRF_IS_FIRSTCALL())
{