Skip to content

Conversation

@pashagolub
Copy link
Collaborator

Turned out issuing txid_current() at the beginning of every chain transaction is creating a session that's sits idle in transaction for the duration of the entire chain. In current case, with a single task {kind == PROGRAM}, that idle transaction doesn't do anything aside from pin the xmin horizon and block vacuum for 6+ hours. The same issue occurs for SQL tasks that are Remote or Autonomous.



Turned out issuing `txid_current()` at the beginning of every chain
transaction is creating a session that's sits idle in transaction for
the duration of the entire chain. In current case, with a single task
`{kind == PROGRAM}`, that idle transaction doesn't do anything aside
from pin the `xmin` horizon and block vacuum for 6+ hours.
The same issue occurs for SQL tasks that are `Remote` or `Autonomous`.
@pashagolub pashagolub self-assigned this Feb 4, 2025
@pashagolub pashagolub added the enhancement New feature or request label Feb 4, 2025
@pashagolub pashagolub changed the title [+] switch to VirtualXID internally from TransactionXID, solves #674 [+] switch to VirtualXID from TransactionXID, solves #674 Feb 6, 2025
@pashagolub pashagolub merged commit 5046c1a into master Feb 6, 2025
6 checks passed
@pashagolub pashagolub deleted the 674_switch_txid_to_vxid branch February 6, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants