Skip to main content
Question

Is it possible to somehow rename the Vertica schema without interrupting current transaction, withou

  • November 28, 2023
  • 2 replies
  • 0 views

givanx

Hi,

I currently have a task of renaming a Vertica schema.
The problem is that this schema is being intensely used (writes / reads).
I fear that after renaming the schema, all ongoing transactions will just fail.
What happens to ongoing transactions if I run the ALTER SCHEMA RENAME TO command?

Is it possible to somehow rename the Vertica schema without interrupting current transaction, without downtime?

Thank you.

2 replies

marcothesane
Forum|alt.badge.img+1
  • Participating Frequently
  • November 28, 2023

But of course, if the insert-select is followed by a COMMIT, in a script, and a following command wants to select from schema foo that does not exist any more, a new snapshot will be taken, and the script will fail at that point.


givanx
  • Author
  • New Participant
  • December 8, 2023

thank you, @marcothesane!