Skip to content

Commit 2cfd624

Browse files
committed
Fix session auth reset handling.
Fixes rowsecurity test.
1 parent a378c06 commit 2cfd624

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

multimaster.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3646,6 +3646,10 @@ static void MtmGucSet(VariableSetStmt *stmt, const char *queryStr)
36463646

36473647
case VAR_RESET:
36483648
{
3649+
if (strcmp(stmt->name, "session_authorization") == 0)
3650+
{
3651+
hash_search(MtmGucHash, "role", HASH_REMOVE, NULL);
3652+
}
36493653
key = pstrdup(stmt->name);
36503654
hash_search(MtmGucHash, key, HASH_REMOVE, NULL);
36513655
}
@@ -3674,11 +3678,6 @@ static void MtmGucDiscard(DiscardStmt *stmt)
36743678
}
36753679
}
36763680

3677-
static void MtmGucClear(void)
3678-
{
3679-
3680-
}
3681-
36823681
static char * MtmGucSerialize(void)
36833682
{
36843683
HASH_SEQ_STATUS status;
@@ -3868,9 +3867,6 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
38683867
if (stmt->kind == VAR_SET_MULTI)
38693868
skipCommand = true;
38703869

3871-
if (stmt->kind == VAR_RESET && strcmp(stmt->name, "session_authorization") == 0)
3872-
MtmGucClear();
3873-
38743870
if (!IsTransactionBlock())
38753871
{
38763872
skipCommand = true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy