gcc compiler on my machine is 4.6.1, but I didn't compile it myself.
just installed the binary from apt-get. I will try to compile it by
myself to see what will happen
On Mon, Jul 25, 2011 at 8:18 PM, Tomas Vondra <tv@fuzzy.cz> wrote:
> On 25 Červenec 2011, 11:39, Yan Chunlu wrote:
>> I am using debian ant apt-get to install postgresql, dpkg list shows
>> they are the same? is there anyway to tell what's version it is
>> compiled from? thanks!
>
> AFAIK there's no way to find out which compiler was used to build
> PostgreSQL binaries (IIRC this is not in pg_config). So you can do this
>
> gcc --version
>
> That should print version of the default compiler, and it's very likely it
> was used to build the PostgreSQL binaries. If it's 4.6.0, you've been hit
> by the problem Fujii Masao described. Use a different gcc version and it
> should work fine.
>
> Tomas
>
>