Andrew Dunstan wrote:
> And anyway you need to come up with a reasonable alternative for
> packagers, rather than just say "don't do this.". The only one I can
> think of is to run initdb as part of a package postinstall, although
> packagers and especially distro preparers might find that more than
> something of a nuisance.
I think running initdb in the package postinstall is the best place, and
many packages already do that. I gather from this discussion that some
packages run initdb from the init script, and that the concerns that
have been expressed are especially about that setup, and I certainly
agree that this is not the optimal arrangement.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/