Sv: DDL in active production database

From: Andreas Joseph Krogh <andreas(at)visena(dot)com>
To: "Skelton, Adam J" <Adam(dot)Skelton(at)fisglobal(dot)com>
Cc: "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Sv: DDL in active production database
Date: 2023-09-25 09:58:56
Message-ID: VisenaEmail.a6e.1bf6172a1534952b.18acbc594bb@origo02.app.internal.visena.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

På mandag 25. september 2023 kl. 02:01:28, skrev Skelton, Adam J <
Adam(dot)Skelton(at)fisglobal(dot)com <mailto:Adam(dot)Skelton(at)fisglobal(dot)com>>:

Hi,

I hope I have the correct group here.

I have a question that I am struggling to find answers for in the
documentation. Does Postgres have problems with creation / changes to database
schema objects when the database is actively being used?

In particular – rightly or wrongly – our developers want our application to
occasionally issue the following kinds of DDL when it’s in active use

Alter table ... add column ...

Create / drop materialised view ...

Create / drop table created with INHERITANCE

I know oracle hates this and you can run into some serious issues, SQL server
generally lets you away with it.

Should we expect problems if we decided to do this in the latest version of
Postgres?

Thanks for your time.

Adam

The information contained in this message is proprietary and/or confidential.
If you are not the intended recipient, please: (i) delete the message and all
copies; (ii) do not disclose, distribute or use the message in any manner; and
(iii) notify the sender immediately. In addition, please be aware that any
message addressed to our domain is subject to archiving and review by persons
other than the intended recipient. Thank you.

It will cause problems if you mix DDL and DML when having deferred constraints
with following updates in the same TX.

--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas(at)visena(dot)com <mailto:andreas(at)visena(dot)com>
www.visena.com <https://www.visena.com>
<https://www.visena.com>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message JORGE MALDONADO 2023-10-02 20:57:32 A situation with one parent table and 3 child tables
Previous Message David G. Johnston 2023-09-25 00:06:19 Re: DDL in active production database