Обсуждение: Can database run a script automatically at start up?

Поиск
Список
Период
Сортировка

Can database run a script automatically at start up?

От
Frank Church
Дата:
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

Re: Can database run a script automatically at start up?

От
Szymon Guz
Дата:


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