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

PGPRO-5703#34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
MakSl merged 2 commits intomasterfromPGPRO-5703
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletionMakefile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,7 +30,11 @@ ISOLATIONCHECKS = corner_cases

check: isolationcheck

installcheck: isolationcheck
installcheck: submake-isolation
$(MKDIR_P) isolation_output
$(pg_isolation_regress_installcheck) \
--outputdir=isolation_output \
$(ISOLATIONCHECKS)

isolationcheck: | submake-isolation temp-install
$(MKDIR_P) isolation_output
Expand Down
10 changes: 7 additions & 3 deletionspg_query_state.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -541,14 +541,18 @@ pg_query_state(PG_FUNCTION_ARGS)
break;
}
}
pg_atomic_write_u32(&counterpart_userid->n_peers, 1);
params->reqid = ++reqid;
pg_write_barrier();

counterpart_user_id = GetRemoteBackendUserId(proc);
if (!(superuser() || GetUserId() == counterpart_user_id))
{
UnlockShmem(&tag);
ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
errmsg("permission denied")));
}

pg_atomic_write_u32(&counterpart_userid->n_peers, 1);
params->reqid = ++reqid;
pg_write_barrier();

bg_worker_procs = GetRemoteBackendWorkers(proc);

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp