Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a351705d
Commit
a351705d
authored
Dec 10, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve some messages
parent
8b469bd7
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
12 deletions
+12
-12
src/backend/access/transam/commit_ts.c
src/backend/access/transam/commit_ts.c
+1
-1
src/backend/catalog/objectaddress.c
src/backend/catalog/objectaddress.c
+1
-1
src/backend/commands/policy.c
src/backend/commands/policy.c
+2
-2
src/backend/commands/user.c
src/backend/commands/user.c
+1
-1
src/backend/executor/nodeCustom.c
src/backend/executor/nodeCustom.c
+2
-2
src/backend/utils/adt/jsonb.c
src/backend/utils/adt/jsonb.c
+2
-2
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/jsonfuncs.c
+1
-1
src/test/regress/expected/jsonb.out
src/test/regress/expected/jsonb.out
+1
-1
src/test/regress/expected/object_address.out
src/test/regress/expected/object_address.out
+1
-1
No files found.
src/backend/access/transam/commit_ts.c
View file @
a351705d
...
@@ -384,7 +384,7 @@ error_commit_ts_disabled(void)
...
@@ -384,7 +384,7 @@ error_commit_ts_disabled(void)
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
errmsg
(
"could not get commit timestamp data"
),
errmsg
(
"could not get commit timestamp data"
),
RecoveryInProgress
()
?
RecoveryInProgress
()
?
errhint
(
"Make sure the configuration parameter
\"
%s
\"
is set
i
n the master server."
,
errhint
(
"Make sure the configuration parameter
\"
%s
\"
is set
o
n the master server."
,
"track_commit_timestamp"
)
:
"track_commit_timestamp"
)
:
errhint
(
"Make sure the configuration parameter
\"
%s
\"
is set."
,
errhint
(
"Make sure the configuration parameter
\"
%s
\"
is set."
,
"track_commit_timestamp"
)));
"track_commit_timestamp"
)));
...
...
src/backend/catalog/objectaddress.c
View file @
a351705d
...
@@ -1901,7 +1901,7 @@ pg_get_object_address(PG_FUNCTION_ARGS)
...
@@ -1901,7 +1901,7 @@ pg_get_object_address(PG_FUNCTION_ARGS)
if
(
list_length
(
name
)
<
1
)
if
(
list_length
(
name
)
<
1
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"name list
must be of length
at least %d"
,
1
)));
errmsg
(
"name list
length must be
at least %d"
,
1
)));
}
}
/*
/*
...
...
src/backend/commands/policy.c
View file @
a351705d
...
@@ -167,8 +167,8 @@ policy_role_list_to_array(List *roles, int *num_roles)
...
@@ -167,8 +167,8 @@ policy_role_list_to_array(List *roles, int *num_roles)
{
{
ereport
(
WARNING
,
ereport
(
WARNING
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"ignoring
roles specified other than public
"
),
errmsg
(
"ignoring
specified roles other than PUBLIC
"
),
errhint
(
"All roles are members of the
public
role."
)));
errhint
(
"All roles are members of the
PUBLIC
role."
)));
*
num_roles
=
1
;
*
num_roles
=
1
;
}
}
role_oids
[
0
]
=
ObjectIdGetDatum
(
ACL_ID_PUBLIC
);
role_oids
[
0
]
=
ObjectIdGetDatum
(
ACL_ID_PUBLIC
);
...
...
src/backend/commands/user.c
View file @
a351705d
...
@@ -959,7 +959,7 @@ DropRole(DropRoleStmt *stmt)
...
@@ -959,7 +959,7 @@ DropRole(DropRoleStmt *stmt)
if
(
rolspec
->
roletype
!=
ROLESPEC_CSTRING
)
if
(
rolspec
->
roletype
!=
ROLESPEC_CSTRING
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"cannot use special role specifier in
\"
%s
\"
"
,
"
DROP ROLE"
)));
errmsg
(
"cannot use special role specifier in DROP ROLE"
)));
role
=
rolspec
->
rolename
;
role
=
rolspec
->
rolename
;
tuple
=
SearchSysCache1
(
AUTHNAME
,
PointerGetDatum
(
role
));
tuple
=
SearchSysCache1
(
AUTHNAME
,
PointerGetDatum
(
role
));
...
...
src/backend/executor/nodeCustom.c
View file @
a351705d
...
@@ -144,7 +144,7 @@ ExecCustomMarkPos(CustomScanState *node)
...
@@ -144,7 +144,7 @@ ExecCustomMarkPos(CustomScanState *node)
if
(
!
node
->
methods
->
MarkPosCustomScan
)
if
(
!
node
->
methods
->
MarkPosCustomScan
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"custom
-
scan
\"
%s
\"
does not support MarkPos"
,
errmsg
(
"custom
scan
\"
%s
\"
does not support MarkPos"
,
node
->
methods
->
CustomName
)));
node
->
methods
->
CustomName
)));
node
->
methods
->
MarkPosCustomScan
(
node
);
node
->
methods
->
MarkPosCustomScan
(
node
);
}
}
...
@@ -155,7 +155,7 @@ ExecCustomRestrPos(CustomScanState *node)
...
@@ -155,7 +155,7 @@ ExecCustomRestrPos(CustomScanState *node)
if
(
!
node
->
methods
->
RestrPosCustomScan
)
if
(
!
node
->
methods
->
RestrPosCustomScan
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"custom
-
scan
\"
%s
\"
does not support MarkPos"
,
errmsg
(
"custom
scan
\"
%s
\"
does not support MarkPos"
,
node
->
methods
->
CustomName
)));
node
->
methods
->
CustomName
)));
node
->
methods
->
RestrPosCustomScan
(
node
);
node
->
methods
->
RestrPosCustomScan
(
node
);
}
}
src/backend/utils/adt/jsonb.c
View file @
a351705d
...
@@ -1238,7 +1238,7 @@ jsonb_build_object(PG_FUNCTION_ARGS)
...
@@ -1238,7 +1238,7 @@ jsonb_build_object(PG_FUNCTION_ARGS)
if
(
val_type
==
InvalidOid
||
val_type
==
UNKNOWNOID
)
if
(
val_type
==
InvalidOid
||
val_type
==
UNKNOWNOID
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"arg %d: could not determine data type"
,
i
+
2
)));
errmsg
(
"arg
ument
%d: could not determine data type"
,
i
+
2
)));
add_jsonb
(
arg
,
PG_ARGISNULL
(
i
+
1
),
&
result
,
val_type
,
false
);
add_jsonb
(
arg
,
PG_ARGISNULL
(
i
+
1
),
&
result
,
val_type
,
false
);
}
}
...
@@ -1300,7 +1300,7 @@ jsonb_build_array(PG_FUNCTION_ARGS)
...
@@ -1300,7 +1300,7 @@ jsonb_build_array(PG_FUNCTION_ARGS)
if
(
val_type
==
InvalidOid
||
val_type
==
UNKNOWNOID
)
if
(
val_type
==
InvalidOid
||
val_type
==
UNKNOWNOID
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"arg %d: could not determine data type"
,
i
+
1
)));
errmsg
(
"arg
ument
%d: could not determine data type"
,
i
+
1
)));
add_jsonb
(
arg
,
PG_ARGISNULL
(
i
),
&
result
,
val_type
,
false
);
add_jsonb
(
arg
,
PG_ARGISNULL
(
i
),
&
result
,
val_type
,
false
);
}
}
...
...
src/backend/utils/adt/jsonfuncs.c
View file @
a351705d
...
@@ -3464,7 +3464,7 @@ jsonb_delete_idx(PG_FUNCTION_ARGS)
...
@@ -3464,7 +3464,7 @@ jsonb_delete_idx(PG_FUNCTION_ARGS)
if
(
JB_ROOT_IS_OBJECT
(
in
))
if
(
JB_ROOT_IS_OBJECT
(
in
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"cannot delete from object using integer
subscript
"
)));
errmsg
(
"cannot delete from object using integer
index
"
)));
if
(
JB_ROOT_COUNT
(
in
)
==
0
)
if
(
JB_ROOT_COUNT
(
in
)
==
0
)
PG_RETURN_JSONB
(
in
);
PG_RETURN_JSONB
(
in
);
...
...
src/test/regress/expected/jsonb.out
View file @
a351705d
...
@@ -3173,7 +3173,7 @@ select '[]'::jsonb - 'a';
...
@@ -3173,7 +3173,7 @@ select '[]'::jsonb - 'a';
select '"a"'::jsonb - 1; -- error
select '"a"'::jsonb - 1; -- error
ERROR: cannot delete from scalar
ERROR: cannot delete from scalar
select '{}'::jsonb - 1; -- error
select '{}'::jsonb - 1; -- error
ERROR: cannot delete from object using integer
subscript
ERROR: cannot delete from object using integer
index
select '[]'::jsonb - 1;
select '[]'::jsonb - 1;
?column?
?column?
----------
----------
...
...
src/test/regress/expected/object_address.out
View file @
a351705d
...
@@ -39,7 +39,7 @@ CREATE TRANSFORM FOR int LANGUAGE SQL (
...
@@ -39,7 +39,7 @@ CREATE TRANSFORM FOR int LANGUAGE SQL (
SELECT pg_get_object_address('stone', '{}', '{}');
SELECT pg_get_object_address('stone', '{}', '{}');
ERROR: unrecognized object type "stone"
ERROR: unrecognized object type "stone"
SELECT pg_get_object_address('table', '{}', '{}');
SELECT pg_get_object_address('table', '{}', '{}');
ERROR: name list
must be of length
at least 1
ERROR: name list
length must be
at least 1
SELECT pg_get_object_address('table', '{NULL}', '{}');
SELECT pg_get_object_address('table', '{NULL}', '{}');
ERROR: name or argument lists may not contain nulls
ERROR: name or argument lists may not contain nulls
-- unrecognized object types
-- unrecognized object types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment