Re: Initialization on server start-up

Поиск
Список
Период
Сортировка
Искать
От
Frank Bax
Тема
Re: Initialization on server start-up
Дата
Msg-id
47DBF15B.3040906@sympatico.ca
Ответ на
Список
Дерево обсуждения
Initialization on server start-up Alex du Plessis <alexdup01@telkomsa.net>
Re: Initialization on server start-up Abdelkader Boudih <terminale@gmail.com>
Re: Initialization on server start-up Bob McConnell <rmcconne@lightlink.com>
Re: Initialization on server start-up Frank Bax <fbax@sympatico.ca>
Alex du Plessis wrote:
> Is there a way to initialize a field in a table in a specific database 
> on server startup?


Simple; just add something like this to a server startup script:

psql -c 'update table set field=value where ...' database user

or

echo 'update table set field=value where ...' | psql database user
В списке pgsql-novice по дате отправления
От: Bob McConnell
Дата:
От: Weiwei Guo
Дата:
Сообщение: What is a password for?
FAQ