postgresql and initdb

Erik Cederstrand erik at cederstrand.dk
Wed Oct 17 15:17:11 PDT 2007


Chad Perrin wrote:
> I've installed PostgreSQL here on FreeBSD 6.2-RELEASE, and I'm a
> little confused by the presence of the initdb(1) manpage and absence
> of an initdb command.
> 
> # locate initdb /usr/local/man/man1/initdb.1.gz
> /usr/ports/databases/postgresql73-server/files/patch-src-bin-initdb-Makefile
> /usr/ports/databases/postgresql74-server/files/patch-src-bin-initdb-Makefile
> /usr/ports/www/rt2/files/patch-tools-initdb
> 
> Any hints?

Use the rc.d script:

/usr/local/etc/rc.d/postgres initdb

(At least for postgres 8.2)

Erik




More information about the freebsd-questions mailing list