pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Konrad Witaszczyk <def@FreeBSD.org>
To: pgsql-general@lists.postgresql.org
Subject: Recreating functions after starting the database server.
Date: Wed, 31 Jan 2018 13:45:01 +0100
Message-ID: <62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org> (raw)

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

Attachments:

  signature.asc (application/pgp-signature, 962B) download

view thread (8+ messages)  latest in thread

Message-ID: <62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org>
Permalink:  ../62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org/
Also on:    postgresql.org/message-id/62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: def@FreeBSD.org
  Subject: Re: Recreating functions after starting the database server.
  In-Reply-To: <62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org>
  References: <62735ca9-2245-8a56-acd5-20f7871244d8@FreeBSD.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox