20 lines
592 B
Text
20 lines
592 B
Text
|
fix build with psql 16
|
||
|
|
||
|
https://github.com/pgpointcloud/pointcloud/pull/339
|
||
|
|
||
|
Index: pgsql/pc_pgsql.c
|
||
|
--- pgsql/pc_pgsql.c.orig
|
||
|
+++ pgsql/pc_pgsql.c
|
||
|
@@ -44,7 +44,11 @@ static PC_CONSTANTS *pc_constants_cache = NULL;
|
||
|
static Oid pointcloud_get_full_version_schema()
|
||
|
{
|
||
|
const char *proname = "pointcloud_full_version";
|
||
|
+#if PGSQL_VERSION < 160
|
||
|
List *names = stringToQualifiedNameList(proname);
|
||
|
+#else
|
||
|
+ List *names = stringToQualifiedNameList(proname, NULL);
|
||
|
+#endif
|
||
|
#if PGSQL_VERSION < 140
|
||
|
FuncCandidateList clist =
|
||
|
FuncnameGetCandidates(names, -1, NIL, false, false, false);
|