Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下如何在高并发多事务环境下增加字段 #50

Open
lianggx opened this issue Mar 7, 2019 · 1 comment
Open

请问一下如何在高并发多事务环境下增加字段 #50

lianggx opened this issue Mar 7, 2019 · 1 comment

Comments

@lianggx
Copy link

lianggx commented Mar 7, 2019

大神,请教一下,如何在高并发多事务环境下给数据表增加字段,目前我们尝试增加字段时,执行语句一直都是 waiting 状态,还会导致死锁问题。

@lianggx
Copy link
Author

lianggx commented Mar 12, 2019

自己挖的坑自己填一下:可以先复制表,然后通过修改 pg_class 表进行换表操作,数据补漏也在后续进行,将旧表的数据迁移到新表。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant