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

Commitdd6023c

Browse files
committed
clear GucBuffer on reset session
1 parent1da0763 commitdd6023c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎contrib/mmts/multimaster.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,15 @@ static char * MtmGUCBufferGet(void){
30063006
returnMtmGUCBuffer->data;
30073007
}
30083008

3009+
staticvoidMtmGUCBufferClear(void)
3010+
{
3011+
if (MtmGUCBufferAllocated)
3012+
{
3013+
resetStringInfo(MtmGUCBuffer);
3014+
MtmGUCBufferAppend("");
3015+
}
3016+
}
3017+
30093018
staticboolMtmProcessDDLCommand(charconst*queryString)
30103019
{
30113020
char*queryWithContext;
@@ -3175,6 +3184,9 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
31753184
if (stmt->kind==VAR_SET_MULTI)
31763185
skipCommand= true;
31773186

3187+
if (stmt->kind==VAR_RESET&&strcmp(stmt->name,"session_authorization")==0)
3188+
MtmGUCBufferClear();
3189+
31783190
if (!IsTransactionBlock())
31793191
{
31803192
skipCommand= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp