Re: Using a VIEW as a temporary mechanism for renaming a table
От
Ben Buckman
Тема
Re: Using a VIEW as a temporary mechanism for renaming a table
Дата
Msg-id
CAFCabS6TVFMx5L8ePJvih8FWyAr6M+ZG5uJkwCEDSNHVHD5r4g@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Using a VIEW as a temporary mechanism for renaming a table Ben Buckman <ben@shyp.com>
Re: Using a VIEW as a temporary mechanism for renaming a
table Andy Colson <andy@squeakycode.net>
Re: Using a VIEW as a temporary mechanism for renaming a table Ben Buckman <ben@shyp.com>
Re: Using a VIEW as a temporary mechanism for renaming a
table Andy Colson <andy@squeakycode.net>
Re: Using a VIEW as a temporary mechanism for renaming a
table Berend Tober <btober@computer.org>
Re: Using a VIEW as a temporary mechanism for renaming a table Ben Buckman <ben@shyp.com>
Re: Using a VIEW as a temporary mechanism for renaming a
table Andy Colson <andy@squeakycode.net>
Re: Using a VIEW as a temporary mechanism for renaming a table Ben Buckman <ben@shyp.com>
Thanks Andy.
My understanding, and please correct me if I'm wrong, is that the view will effectively inherit the table's constraints, because writes to the view that can't be written to the table will fail on the table. Re: "will the data be good data," what risks should I be considering?
In terms of rollout, we would 1) create the view, 2) deploy code that uses the new [view] name, 3) drop the view and rename the table. Deployments are "rolling" so there would be no downtime. The app and users shouldn't notice/care if they're hitting the table or the view.
Thank you
В списке pgsql-general по дате отправления
От: Andy Colson
Дата:
От: Andy Colson
Дата: