Обсуждение: PostgreSQL ports post-installation gives core dump?

Поиск
Список
Период
Сортировка

PostgreSQL ports post-installation gives core dump?

От
CD Baby
Дата:
I just went to do my first PostgreSQL installation on OpenBSD.
Did it from /usr/ports/
I followed the instructions exactly and got a core dump!
Any clues what might fix or cause this?

Using OpenBSD 2.9.  PostgreSQL 7.1
/usr/ports/databases/postgresql/"make install"

AFTER INSTALLING, I TYPED:
$ useradd -c "PostgreSQL Admin User" -g =uid -m -d /var/postgresql -s
/bin/sh postgresql
$ su - postgresql
$ mkdir /var/postgresql/data
$ initdb -D /var/postgresql/data

IT SAID:
Fixing permissions on existing directory /var/postgresql/data
Creating directory /var/postgresql/data/base
Creating directory /var/postgresql/data/global
Creating directory /var/postgresql/data/pg_xlog
Creating template1 database in /var/postgresql/data/base/1
Bad system call (core dumped)       <-------- *******
initdb failed.
Removing temp file /tmp/initdb.12300.


Any clues?


Re: PostgreSQL ports post-installation gives core dump?

От
Tom Lane
Дата:
CD Baby <dereklist@cdbaby.com> writes:
> Bad system call (core dumped)       <-------- *******

IIRC, our FAQ suggests this might mean your kernel is compiled without
SysV shared memory and/or semaphore support.

            regards, tom lane

Re: PostgreSQL ports post-installation gives core dump?

От
CD Baby
Дата:
> > Bad system call (core dumped)       <-------- *******
>
>IIRC, our FAQ suggests this might mean your kernel is compiled without
>SysV shared memory and/or semaphore support.


Thanks!  That was it!

For those OpenBSD people, your kernel needs to have these options in your
kernel-configuration file:

# PostgreSQL NEEDS THIS
option          SYSVMSG         # System V-like message queues
option          SYSVSEM         # System V-like semaphores
option          SYSVSHM         # System V-like memory sharing