PostgreSQL Statement Dependency Resolving | Schema Upgrade

Started by Jagmohan Kainturaabout 5 years ago2 messagesgeneral
Jump to latest
#1Jagmohan Kaintura
jagmohan@tecorelabs.com

Hi Team,

WHile performing a schema upgrade which needs any alter in the definition
of schema object, it always asks to execute that statement with CASCADE as
it has many dependent objects on it.

Most of the time we have to drop a lot of entities to just compile a simple
view.

In out case :
Views are being referenced by many other schema objects , in procedures,
functions and views.

Do we have any PostgreSQL extension or any standardized method which can
help with capturing all the cascade objects before dropping them and then
reloading once the new definition is applied.

--
*Best Regards,*
Jagmohan
Senior Consultant, TecoreLabs.

#2Jagmohan Kaintura
jagmohan@tecorelabs.com
In reply to: Jagmohan Kaintura (#1)
Fwd: PostgreSQL Statement Dependency Resolving | Schema Upgrade

---------- Forwarded message ---------
From: Jagmohan Kaintura <jagmohan@tecorelabs.com>
Date: Mon, Feb 22, 2021 at 7:44 AM
Subject: PostgreSQL Statement Dependency Resolving | Schema Upgrade
To: <pgsql-admin@postgresql.org>

Hi Team,

WHile performing a schema upgrade which needs any alter in the definition
of schema object, it always asks to execute that statement with CASCADE as
it has many dependent objects on it.

Most of the time we have to drop a lot of entities to just compile a simple
view.

In out case :
Views are being referenced by many other schema objects , in procedures,
functions and views.

Do we have any PostgreSQL extension or any standardized method which can
help with capturing all the cascade objects before dropping them and then
reloading once the new definition is applied.

--
*Best Regards,*
Jagmohan
Senior Consultant, TecoreLabs.

--
*Best Regards,*
Jagmohan
Senior Consultant, TecoreLabs.