Re: initdb and "exit_nicely"...

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: initdb and "exit_nicely"...
Дата
Msg-id Pine.LNX.4.21.0005251252570.348-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: initdb and "exit_nicely"...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: initdb and "exit_nicely"...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane writes:

> The idea I suggested a couple of days ago was that initdb should refuse
> to run if PGDATA exists and is nonempty.  Sound reasonable?

Okay, let's do that. How do you find out if a directory is empty? The best
way I could think of is this:

test x"`ls -A "$PGDATA"`" = x

Are we talking 7.0.1 material, btw?

--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


В списке pgsql-general по дате отправления:

Предыдущее
От: Marcin Inkielman
Дата:
Сообщение: PG 7.0 vacuum problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PG 7.0 vacuum problem