Hi! Had a curious problem with postgresql 7.0.3. Could create a DB if I run kernel 2.4 but not in 2.6. Had a look in /src/backend/commands/dbcommands.c and finaly found out that you use an errorounous ret value from the system()-call. You checked for: if (system(buf) != 0) .. I changed those lines to if (system(buf) != -1 ) and it worked. (Thanks to "man 3 system" regards Niklas Andersson
"Niklas Andersson" <niklas.andersson@cport.se> writes:
> Had a curious problem with postgresql 7.0.3.
7.0.3? You do realize that that's prehistoric?
> Could create a DB if I run
> kernel 2.4 but not in 2.6. Had a look in
> /src/backend/commands/dbcommands.c and finaly found out that you use an
> errorounous ret value from the system()-call. You checked for: if
> (system(buf) != 0)
> .. I changed those lines to if (system(buf) != -1 ) and it worked. (Thanks
> to "man 3 system"
I don't believe this change is correct; what you did was to disable
detection of failures of the child process, ie, cp returning a nonzero
exit status.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера