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

Commit0333701

Browse files
committed
Set statement timestamp in apply worker
This ensures that triggers can see an up-to-date timestamp.Reported-by: Konstantin Evteev <konst583@gmail.com>
1 parent7f5cb14 commit0333701

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/replication/logical/worker.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,15 @@ ensure_transaction(void)
157157
{
158158
if (IsTransactionState())
159159
{
160+
SetCurrentStatementStartTimestamp();
161+
160162
if (CurrentMemoryContext!=ApplyMessageContext)
161163
MemoryContextSwitchTo(ApplyMessageContext);
162164

163165
return false;
164166
}
165167

168+
SetCurrentStatementStartTimestamp();
166169
StartTransactionCommand();
167170

168171
maybe_reread_subscription();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp