[SCM] PostGIS branch stable-3.5 updated. 3.5.2-13-g7c417a177
git at osgeo.org
git at osgeo.org
Thu Mar 20 14:37:25 PDT 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, stable-3.5 has been updated
via 7c417a1773631793808e9781d6b99817552b9edd (commit)
via 92e0b08a012270fa86b36f1f134adc0eb85fb06f (commit)
from 8b1bb8316bab89f0433cf36ee085974b5acdeec8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7c417a1773631793808e9781d6b99817552b9edd
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Mar 20 14:37:19 2025 -0700
NEWS for #5819
diff --git a/NEWS b/NEWS
index 6d29f441b..d6cb1b956 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PostgreSQL 12-18 required. GEOS 3.8+ required. Proj 6.1+ required.
- #5841, Change approach to interrupt handling to conform to PgSQL
recommended practice (Paul Ramsey)
- #5855, Fix index binding in ST_DFullyWithin (Paul Ramsey)
+- #5819, Support longer names in estimated extent (Paul Ramsey)
- Fix misassignment of result in _lwt_HealEdges (Maxim Korotkov)
commit 92e0b08a012270fa86b36f1f134adc0eb85fb06f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Mar 20 14:35:55 2025 -0700
Allow estimated_extent to work with table/namespace names closer to max length.
References #5819
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index ec0142be1..2ce7a63b0 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2600,7 +2600,7 @@ Datum gserialized_estimated_extent(PG_FUNCTION_ARGS)
char *col = NULL;
int16 attnum, idx_attnum;
Oid atttypid = InvalidOid;
- char nsp_tbl[NAMEDATALEN];
+ char nsp_tbl[2*NAMEDATALEN+6];
char *tbl;
Oid tbl_oid, idx_oid = 0;
ND_STATS *nd_stats;
@@ -2625,13 +2625,13 @@ Datum gserialized_estimated_extent(PG_FUNCTION_ARGS)
char *nsp = text_to_cstring(PG_GETARG_TEXT_P(0));
tbl = text_to_cstring(PG_GETARG_TEXT_P(1));
coltxt = PG_GETARG_TEXT_P(2);
- snprintf(nsp_tbl, NAMEDATALEN, "\"%s\".\"%s\"", nsp, tbl);
+ snprintf(nsp_tbl, sizeof(nsp_tbl), "\"%s\".\"%s\"", nsp, tbl);
}
if ( PG_NARGS() == 2 )
{
tbl = text_to_cstring(PG_GETARG_TEXT_P(0));
coltxt = PG_GETARG_TEXT_P(1);
- snprintf(nsp_tbl, NAMEDATALEN, "\"%s\"", tbl);
+ snprintf(nsp_tbl, sizeof(nsp_tbl), "\"%s\"", tbl);
}
/* Parse the namespace/table strings and lookup in system catalogs */
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/gserialized_estimate.c | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list