From: | Rajib Deb <Rajib_Deb(at)infosys(dot)com> |
---|---|
To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Error while executing initdb... |
Date: | 2018-12-31 04:43:01 |
Message-ID: | SG2PR02MB2715392B5C4790983947A5FC8CB20@SG2PR02MB2715.apcprd02.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dear All
I put a printf statement in the "main.c" code and built it. Later when I tried to execute INITDB, I got the following error
The program "postgres" was found by xxxx but was not the same version as initdb.Check your installation
After some analysis, I figured out that this error is being generated because "ret" code from "PG_CTL.c" is returning a non zero return code while it is comparing the line and versionstr in "exec.c". It looks like while reading the line in "pipe_read_line" method, it is concatenating the printf statement with the postgres version(postgres (PostgreSQL)xxxxx).
I thought this probably is a defect and maybe the buffer needs to be flushed out before reading it in "pipe_read_line" method. Before doing further investigation and putting a possible fix, I thought to check with this group if it is worth putting the effort.
Thanks
Rajib
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2018-12-31 05:15:39 | Re: Pluggable Storage - Andres's take |
Previous Message | Amit Kapila | 2018-12-31 04:26:48 | Logical decoding for operations on zheap tables |