Recreating functions after starting the database server.

From: Konrad Witaszczyk <def(at)FreeBSD(dot)org>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Recreating functions after starting the database server.
Date: 2018-01-31 12:45:01
Message-ID: 62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm considering changing my database schema upgrade routines to recreate
functions and all objects depending on them (e.g. triggers, views) just after
the database server is started. It would make the routines much simpler since
they wouldn't have to depend on the history of the schema.

Does anyone has any experience with recreating all functions and triggers to
upgrade a database schema assuming that during the upgrade there are no client
connections to the database?

Does anyone see any problems with such approach in terms of consistency and
performance? I'm not familiar with PostgreSQL internals and I'm not sure how it
would affect the planner when using various function volatile categories.

Konrad

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2018-01-31 13:03:34 Re: Recreating functions after starting the database server.
Previous Message Thiemo Kellner 2018-01-31 12:26:16 Re: [solved] Setting up streaming replication problems