Can database run a script automatically at start up?

Started by Frank Churchover 15 years ago2 messagesgeneral
Jump to latest
#1Frank Church
voipfc@googlemail.com

Can PostgresSQL be setup to automtatically run a script at start up?

I need something to run at start up in case the database crashed or
some programs did not close their databases properly on shutdown.

/voipfc

#2Szymon Guz
mabewlun@gmail.com
In reply to: Frank Church (#1)
Re: Can database run a script automatically at start up?

2010/8/9 Frank Church <voipfc@googlemail.com>

Can PostgresSQL be setup to automtatically run a script at start up?

I need something to run at start up in case the database crashed or
some programs did not close their databases properly on shutdown.

/voipfc

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

It can't, but you may write a script that will do that and will start the
database, so you won't be starting that normally, but only with this script.

regards
Szymon Guz