Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar> writes:
> creating template1 database in /usr/local/pgsql/data/base/1... FATAL:
> semctl(1638435, 16, SETVAL, 536) failed: Argumento invlido
Hmm. If it got that far and no farther, I'd guess you have SEMVMX
set too small.
regards, tom lane