renaming schema does not rename schema in tables default values function using sequence
erkkik
Community Edition User ✭
column default does not change to nextval('new_schema.test_seq')
How to achive this?
1
Best Answers
-
erkkik Community Edition User ✭
Thank You for information
Im running
dbadmin=> select version();version
Vertica Analytic Database v9.3.1-0
1 -
Jim_Knicely - Select Field - Administrator
Okay, for now you will have to manually update the DEFAULT value to point to the sequence's new schema:
Example:
ALTER TABLE new_schema.test_table ALTER COLUMN id SET DEFAULT NEXTVAL('new_schema.test_seq');
4
Answers
This issue has been resolved in Vertica 10.0.0-3 released on 07/29/2020 (Issue: VER-73468) and will soon be fixed in Vertica 9.3.1-14 (not released yet).
Release Notes:
https://www.vertica.com/docs/ReleaseNotes/10.0.x/Vertica_10.0.x_Release_Notes.htm#10.0.0-3
Example:
Which Vertica version are you running?
Thank you!
This workaround did the trick.
@erkkik - Fyi, Vertica 9.3.1-14 is now avaiilable!
https://www.vertica.com/docs/ReleaseNotes/9.3.x/Vertica_9.3.x_Release_Notes.htm#9.3.1-14