Re: Recreating functions after starting the database server.

2018-02-01 Thread raf
Konrad Witaszczyk wrote: > 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 depen

Re: Recreating functions after starting the database server.

2018-01-31 Thread David G. Johnston
On Wed, Jan 31, 2018 at 5:45 AM, Konrad Witaszczyk wrote: > 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

Re: Recreating functions after starting the database server.

2018-01-31 Thread Steven Lembark
> In my case the upgrade routines run migration scripts which modify a > database schema. Besides that I have a bunch of SQL files with the > schema that can be used to initialize a new database. Why not just update the proc's, etc, that depend on the changes? -- Steven Lembark

Re: Recreating functions after starting the database server.

2018-01-31 Thread Konrad Witaszczyk
On 01/31/2018 14:32, Achilleas Mantzios wrote: > On 31/01/2018 15:22, Konrad Witaszczyk wrote: >> On 01/31/2018 14:03, Achilleas Mantzios wrote: >>> On 31/01/2018 14:45, Konrad Witaszczyk wrote: Hi, I'm considering changing my database schema upgrade routines to recreate functio

Re: Recreating functions after starting the database server.

2018-01-31 Thread Achilleas Mantzios
On 31/01/2018 15:22, Konrad Witaszczyk wrote: On 01/31/2018 14:03, Achilleas Mantzios wrote: On 31/01/2018 14:45, Konrad Witaszczyk wrote: 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

Re: Recreating functions after starting the database server.

2018-01-31 Thread Konrad Witaszczyk
On 01/31/2018 14:03, Achilleas Mantzios wrote: > On 31/01/2018 14:45, Konrad Witaszczyk wrote: >> 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

Re: Recreating functions after starting the database server.

2018-01-31 Thread Achilleas Mantzios
On 31/01/2018 14:45, Konrad Witaszczyk wrote: 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 hav

Recreating functions after starting the database server.

2018-01-31 Thread Konrad Witaszczyk
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