Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit59eb12c

Browse files
committed
Make error message of pageinspect more consistent for raw page inputs
There is a copy-paste error from bt_page_items() which got intobt_page_items_bytea(). A second message in get_raw_page_internal() wasinconsistent with all the other sub-modules.Author: Ashutosh SharmaDiscussion:https://postgr.es/m/CAE9k0PnZuZ3PVXSyQY91-53E8JKFcaSyknFqqU43r9MabKSYZA@mail.gmail.com
1 parent9f7ba88 commit59eb12c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎contrib/pageinspect/btreefuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ bt_page_items_bytea(PG_FUNCTION_ARGS)
429429
if (!superuser())
430430
ereport(ERROR,
431431
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
432-
(errmsg("must be superuser to usepageinspect functions"))));
432+
(errmsg("must be superuser to useraw page functions"))));
433433

434434
if (SRF_IS_FIRSTCALL())
435435
{

‎contrib/pageinspect/rawpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ get_raw_page_internal(text *relname, ForkNumber forknum, BlockNumber blkno)
102102
if (!superuser())
103103
ereport(ERROR,
104104
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
105-
(errmsg("must be superuser to use raw functions"))));
105+
(errmsg("must be superuser to use rawpagefunctions"))));
106106

107107
relrv=makeRangeVarFromNameList(textToQualifiedNameList(relname));
108108
rel=relation_openrv(relrv,AccessShareLock);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp