createdb feature request
| От | Mark Harrison |
|---|---|
| Тема | createdb feature request |
| Дата | |
| Msg-id | 402A8762.10008@pixar.com обсуждение исходный текст |
| Ответы |
Re: createdb feature request
Re: createdb feature request |
| Список | pgsql-general |
Apache has a nice feature: it creates copies of all the default
configuration files, so that it's easy to diff and see what has
been modified in the config files.
Can this be included in createdb as well?
Thanks,
Mark
Here's a patch:
*** initdb.sh-orig 2004-02-11 11:25:49.000000000 -0800
--- initdb.sh 2004-02-11 11:28:35.000000000 -0800
***************
*** 608,615 ****
--- 608,620 ----
fi
cp "$PG_IDENT_SAMPLE" "$PGDATA"/pg_ident.conf || exit_nicely
+ cp "$PGDATA"/pg_ident.conf "$PGDATA"/pg_ident.conf.default || exit_nicely
+ cp "$PGDATA"/pg_hba.conf "$PGDATA"/pg_hba.conf.default || exit_nicely
+ cp "$PGDATA"/postgresql.conf "$PGDATA"/postgresql.conf.default || exit_nicely
chmod 0600 "$PGDATA"/pg_hba.conf "$PGDATA"/pg_ident.conf \
"$PGDATA"/postgresql.conf
+ chmod 0600 "$PGDATA"/pg_hba.conf.default "$PGDATA"/pg_ident.conf.default \
+ "$PGDATA"/postgresql.conf.default
echo "ok"
В списке pgsql-general по дате отправления: