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
9e0e5550
Commit
9e0e5550
authored
Apr 18, 2017
by
Fujii Masao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in comment and log message.
parent
6275f5d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/backend/catalog/aclchk.c
src/backend/catalog/aclchk.c
+1
-1
src/backend/commands/subscriptioncmds.c
src/backend/commands/subscriptioncmds.c
+1
-1
src/test/regress/expected/subscription.out
src/test/regress/expected/subscription.out
+1
-1
No files found.
src/backend/catalog/aclchk.c
View file @
9e0e5550
...
@@ -5104,7 +5104,7 @@ pg_publication_ownercheck(Oid pub_oid, Oid roleid)
...
@@ -5104,7 +5104,7 @@ pg_publication_ownercheck(Oid pub_oid, Oid roleid)
}
}
/*
/*
* Ownership check for a
n
subscription (specified by OID).
* Ownership check for a subscription (specified by OID).
*/
*/
bool
bool
pg_subscription_ownercheck
(
Oid
sub_oid
,
Oid
roleid
)
pg_subscription_ownercheck
(
Oid
sub_oid
,
Oid
roleid
)
...
...
src/backend/commands/subscriptioncmds.c
View file @
9e0e5550
...
@@ -912,7 +912,7 @@ AlterSubscriptionOwner_internal(Relation rel, HeapTuple tup, Oid newOwnerId)
...
@@ -912,7 +912,7 @@ AlterSubscriptionOwner_internal(Relation rel, HeapTuple tup, Oid newOwnerId)
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
errmsg
(
"permission denied to change owner of subscription
\"
%s
\"
"
,
errmsg
(
"permission denied to change owner of subscription
\"
%s
\"
"
,
NameStr
(
form
->
subname
)),
NameStr
(
form
->
subname
)),
errhint
(
"The owner of a
n
subscription must be a superuser."
)));
errhint
(
"The owner of a subscription must be a superuser."
)));
form
->
subowner
=
newOwnerId
;
form
->
subowner
=
newOwnerId
;
CatalogTupleUpdate
(
rel
,
&
tup
->
t_self
,
tup
);
CatalogTupleUpdate
(
rel
,
&
tup
->
t_self
,
tup
);
...
...
src/test/regress/expected/subscription.out
View file @
9e0e5550
...
@@ -105,7 +105,7 @@ ALTER SUBSCRIPTION testsub_foo RENAME TO testsub;
...
@@ -105,7 +105,7 @@ ALTER SUBSCRIPTION testsub_foo RENAME TO testsub;
-- fail - new owner must be superuser
-- fail - new owner must be superuser
ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2;
ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2;
ERROR: permission denied to change owner of subscription "testsub"
ERROR: permission denied to change owner of subscription "testsub"
HINT: The owner of a
n
subscription must be a superuser.
HINT: The owner of a subscription must be a superuser.
ALTER ROLE regress_subscription_user2 SUPERUSER;
ALTER ROLE regress_subscription_user2 SUPERUSER;
-- now it works
-- now it works
ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2;
ALTER SUBSCRIPTION testsub OWNER TO regress_subscription_user2;
...
...
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