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>)
Список pgsql-novice
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
Дата:
Сообщение: Re: Initialization on server start-up
Следующее
От: Weiwei Guo
Дата:
Сообщение: What is a password for?