Closed NEUguomiaomiao closed 3 years ago
Hi,
Thanks for your interest in this project! Just as a reminder this is still a work in progress, so the code as-is isn't safe yet. There are some known issue for which I plan to implement fixes shortly (xml expression aren't correctly hashed for instance, entry eviction are leaking dynamic shared memory, entry validity isn't checked after acquiring the locks....), and probably other issues that I'm not yet aware of, for which more thorough testing will have to be done.
For now I pushed https://github.com/rjuju/pg_shared_plans/commit/a33436ad0bcaae24f89c0553b0bedf36b78a4c40 which should allow you to compile the extension as-is on pg12+. Keep in mind that the regression tests would still be failing as some tests only works on pg13 or pg14, I'll fix that later as it will require more invasive work.
Thank you very much for your reply. I wish your project better and better!
Thanks a lot!
For the record I fixed all the issues I was aware of. It's still a prototype but should be more much stable and reliable now.
pg_shared_plans.c: In function ‘pgsp_query_walker’: pg_shared_plans.c:1704:58: error: ‘Query’ {aka ‘struct Query’} has no member named ‘groupDistinct’ 1704 | context->constid = hash_combine(context->constid, query->groupDistinct);