We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa5da4 commit 0665496Copy full SHA for 0665496
NEWS.md
@@ -60,6 +60,7 @@ milestone for 4.0.0
60
* _pgr_dijkstra(text,anyarray,anyarray,boolean,boolean,boolean,bigint)
61
* _pgr_dijkstra(text,text,boolean,boolean,boolean)
62
* _pgr_drivingdistance(text,anyarray,double precision,boolean,boolean)
63
+* _pgr_kruskal(text,anyarray,text,bigint,double precision)
64
* _pgr_prim(text,anyarray,text,bigint,double precision)
65
* _pgr_trsp(text,integer,double precision,integer,double precision,boolean,boolean,text)
66
* _pgr_trsp(text,text,anyarray,anyarray,boolean)
@@ -75,6 +76,7 @@ milestone for 4.0.0
75
76
**Deprecation of internal C/C++ functions**
77
78
79
80
81
82
**Internal C/C++ functions in legacy**
doc/src/release_notes.rst
@@ -91,6 +91,7 @@ milestone for 4.0.0
91
92
93
94
95
96
97
@@ -106,6 +107,7 @@ milestone for 4.0.0
106
107
.. rubric:: Deprecation of internal C/C++ functions
108
109
110
111
112
113
.. rubric:: Internal C/C++ functions in legacy
sql/sigs/pgrouting--4.0.sig
@@ -184,7 +184,6 @@ pgr_kruskaldd(text,bigint,numeric)
184
pgr_kruskaldfs(text,anyarray,bigint)
185
pgr_kruskaldfs(text,bigint,bigint)
186
pgr_kruskal(text)
187
-_pgr_kruskal(text,anyarray,text,bigint,double precision)
188
_pgr_kruskalv4(text,anyarray,text,bigint,double precision)
189
pgr_ksp(text,anyarray,anyarray,integer,boolean,boolean)
190
_pgr_ksp(text,anyarray,anyarray,integer,boolean,boolean,boolean)
sql/spanningTree/_kruskal.sql
@@ -53,29 +53,3 @@ LANGUAGE C VOLATILE STRICT;
53
54
COMMENT ON FUNCTION _pgr_kruskalv4(TEXT, ANYARRAY, TEXT, BIGINT, FLOAT)
55
IS 'pgRouting internal function';
56
-
57
---v3.0
58
-CREATE FUNCTION _pgr_kruskal(
59
- TEXT, -- Edge sql
- ANYARRAY, -- tree root for traversal
- fn_suffix TEXT,
- max_depth BIGINT,
- distance FLOAT,
- OUT seq BIGINT,
- OUT depth BIGINT,
67
- OUT start_vid BIGINT,
68
- OUT node BIGINT,
69
- OUT edge BIGINT,
70
- OUT cost FLOAT,
71
- OUT agg_cost FLOAT)
72
-RETURNS SETOF RECORD AS
73
-'MODULE_PATHNAME'
74
-LANGUAGE C VOLATILE STRICT;
--- COMMENTS
-COMMENT ON FUNCTION _pgr_kruskal(TEXT, ANYARRAY, TEXT, BIGINT, FLOAT)
-IS 'pgRouting internal function deprecated on v3.7.0';
src/spanningTree/kruskal.c
@@ -170,7 +170,11 @@ PGDLLEXPORT Datum _pgr_kruskalv4(PG_FUNCTION_ARGS) {
170
}
171
172
173
-/***********************************************************************************/
+/* Deprecated code starts here
174
+ * This code is used on v3.6 and under
175
+ *
176
+ * TODO(v5) Move to legacy
177
+ */
178
179
PGDLLEXPORT Datum _pgr_kruskal(PG_FUNCTION_ARGS);
180
PG_FUNCTION_INFO_V1(_pgr_kruskal);
@@ -182,6 +186,12 @@ PGDLLEXPORT Datum _pgr_kruskal(PG_FUNCTION_ARGS) {
182
MST_rt *result_tuples = NULL;
183
size_t result_count = 0;
+ ereport(NOTICE, (
+ errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
191
+ errmsg("A stored procedure is using deprecated C internal function '%s'", __func__),
192
+ errdetail("Library function '%s' was deprecated in pgRouting %s", __func__, "3.7.0"),
193
+ errhint("Consider upgrade pgRouting")));
194
+
195
if (SRF_IS_FIRSTCALL()) {
196
MemoryContext oldcontext;
197
funcctx = SRF_FIRSTCALL_INIT();
0 commit comments