Skip to content

How does partition_data_proc in online make sure new rows that match the partition being created don't get inserted in the default table? #513

Answered by keithf4
rguillebert asked this question in Q&A
Discussion options

You must be logged in to vote

So, I think one of two things would happen.

  1. The transaction trying to insert that data will be held until the transaction that is making the new child table finishes. Then the new data would go into the new child.
  2. Your case where the transaction running the partition data function will fail once that child table attempts to be created. Would then have to try again. I think if this is the case, then you're likely going to have to pause the application trying to insert that data if it keeps happening. Either that or wait until the application is past the point in time where it's inserting data into the default and use a child table in the future. Might possibly have to manually create that…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@KrohnicDev
Comment options

@keithf4
Comment options

Answer selected by rguillebert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants