powa-team / pg_qualstats

A PostgreSQL extension for collecting statistics about predicates, helping find what indices are missing
Other
272 stars 26 forks source link

Build error on RHEL 7 *and* PostgreSQL <= 11 #28

Closed devrimgunduz closed 4 years ago

devrimgunduz commented 4 years ago

Hi,

2.0.0 fails to build on RHEL7 against PostgreSQL <= 11. This does not happen on other distros and PostgreSQL versions. RHEL and PG12 builds fine.

gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

Here is the error:

Can you please take a look?

Regards, Devrim

rjuju commented 4 years ago

Hi @devrimgunduz

FTR I also noticed that recently at work, but as this was failing on PG12+ too I was suspecting some build issue that would need to be investigated rather than changing it upstream.

I just pushed https://github.com/powa-team/pg_qualstats/commit/9f2c01afb35699c5ddbf31ab1f69501bce2fa9f4. Can you confirm that this fixes the build? If yes I'll release 2.0.1.

devrimgunduz commented 4 years ago

Hi @rjuju ,

Thanks for the quick response! Tested the patch, and it works --and also it does not break other distros.

I'll wait for 2.0.1 for the updated packages.

Regards, Devrim

rjuju commented 4 years ago

Thanks a lot for confirming. I just published 2.0.1!

rjuju commented 4 years ago

Make sure that you use commit https://github.com/powa-team/pg_qualstats/commit/c0590e39f40f10c6c5b46133952d1346a4858088, I previously failed to add the modified sql script, sorry for the inconvenience :/