postgrespro / pgsphere

PgSphere provides spherical data types, functions, operators, and indexing for PostgreSQL.
https://pgsphere.org
BSD 3-Clause "New" or "Revised" License
16 stars 15 forks source link

Fix compatibility with PG16 #39

Closed df7cb closed 10 months ago

df7cb commented 11 months ago
esabol commented 11 months ago

Would it be premature to add PostgreSQL 16 to the Travis CI? Does apt.postgresql.org.sh support PostgreSQL 16 yet? If 16 does work, then I suggest adding it to .travis.yml in this PR.

Just curious, where did Abs() come from in the first place? Is that an older PostgreSQL thing?

vitcpp commented 11 months ago

I'm not sure how the reference output file moc100_x.out is chosen for comparison. Is it performed automatically by test scripts?

df7cb commented 11 months ago

I'm not sure how the reference output file moc100_x.out is chosen for comparison. Is it performed automatically by test scripts?

https://www.postgresql.org/docs/current/regress-variant.html

Would it be premature to add PostgreSQL 16 to the Travis CI? Does apt.postgresql.org.sh support PostgreSQL 16 yet? If 16 does work, then I suggest adding it to .travis.yml in this PR.

Of course PG16 is already supported. I'll add that shortly.

Just curious, where did Abs() come from in the first place? Is that an older PostgreSQL thing?

Abs was removed in PG16.

vitcpp commented 11 months ago

@df7cb Thank you for the explanation. I'm ok with the patch but we have to fix tests for pg16. I'm not sure how to fix it yet. May be to change snapshot to the latest one?

df7cb commented 11 months ago

The problems that the testsuite has are independent from this pull request.

The issues should be fixed, but in a separate PR. This PR does fix the actual PG16 problems and I already applied it in the packages on apt.postgresql.org.

vitcpp commented 11 months ago

I propose to enable and fix PG16 tests in another PR and then apply this patch. I can do it but I'm on vacation this week with limited access to the internet.

esabol commented 11 months ago

@vitcpp wrote:

I propose to enable and fix PG16 tests in another PR and then apply this patch. I can do it but I'm on vacation this week with limited access to the internet.

This sounds to me like a very good plan.

Thank you, @df7cb, for detailing the issues with the test suite and such.

dura0ok commented 11 months ago

@df7cb I cherry-picked all your commits to my branch, made a small change and the tests passed. You can see in #41 @vitcpp @esabol what do you think?

vitcpp commented 10 months ago

@df7cb We fixed some warning messages that resulted in test failures. Could you please be so kind to re-sync your branch? Thank you in advance!

df7cb commented 10 months ago

Branch rebased.