Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding log statements for v15 to investigate security label issue #607

Draft
wants to merge 1 commit into
base: REL_15_STABLE_neon
Choose a base branch
from
Draft
Changes from all 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
3 changes: 3 additions & 0 deletions src/backend/commands/seclabel.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ ExecSecLabelStmt(SecLabelStmt *stmt)
*/
if (stmt->provider == NULL)
{
elog(LOG, "No label provider for the security statement. Length of security label providers: %d", list_length(label_provider_list));
if (label_provider_list == NIL)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
Expand Down Expand Up @@ -572,6 +573,8 @@ register_label_provider(const char *provider_name, check_object_relabel_type hoo
LabelProvider *provider;
MemoryContext oldcxt;

elog(LOG, "Registering label provider %s", provider_name);

oldcxt = MemoryContextSwitchTo(TopMemoryContext);
provider = palloc(sizeof(LabelProvider));
provider->provider_name = pstrdup(provider_name);
Expand Down