Re: Add llvm version into the version string - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: Add llvm version into the version string
Date
Msg-id u74dgzwrfbnqyi6qvgvt5rv4znt54ecelcvm6ibdkwznggtkhg@rkcwncucff7v
Whole thread Raw
In response to Re: Add llvm version into the version string  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> On Sat, Sep 21, 2024 at 05:25:30PM GMT, Tom Lane wrote:
>
> Is there a way to get the llvm library's version at run time?  If so
> we could consider building a new function to return that.

Yes, there is a C api LLVMGetVersion to get the major, minor and patch
numbers. The jit provider could be extended to return this information.

About a new function, I think that the llvm runtime version has to be
shown in some form by pgsql_version. The idea is to skip an emails
exchange like "here is the bug report" -> "can you attach the llvm
version?". If it's going to be a new separate function, I guess it won't
make much difference to ask either to call the new function or the
llvm-config, right?



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: pgbench: Improve result outputs related to failed transactinos
Next
From: Tomas Vondra
Date:
Subject: Re: scalability bottlenecks with (many) partitions (and more)