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 c4cd95c commit d97edf6Copy full SHA for d97edf6
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_prim(text,anyarray,text,bigint,double precision)
64
* _pgr_trsp(text,integer,double precision,integer,double precision,boolean,boolean,text)
65
* _pgr_trsp(text,text,anyarray,anyarray,boolean)
66
* _pgr_trsp(text,text,anyarray,bigint,boolean)
@@ -74,6 +75,7 @@ milestone for 4.0.0
74
75
**Deprecation of internal C/C++ functions**
76
77
78
79
80
**Internal C/C++ functions in legacy**
81
doc/src/release_notes.rst
@@ -91,6 +91,7 @@ milestone for 4.0.0
91
92
93
94
95
96
97
@@ -105,6 +106,7 @@ milestone for 4.0.0
105
106
.. rubric:: Deprecation of internal C/C++ functions
107
108
109
110
111
.. rubric:: Internal C/C++ functions in legacy
112
sql/sigs/pgrouting--4.0.sig
@@ -245,7 +245,6 @@ pgr_primdd(text,bigint,numeric)
245
pgr_primdfs(text,anyarray,bigint)
246
pgr_primdfs(text,bigint,bigint)
247
pgr_prim(text)
248
-_pgr_prim(text,anyarray,text,bigint,double precision)
249
_pgr_primv4(text,anyarray,text,bigint,double precision)
250
pgr_pushrelabel(text,anyarray,anyarray)
251
pgr_pushrelabel(text,anyarray,bigint)
sql/spanningTree/_prim.sql
@@ -27,18 +27,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27
28
********************************************************************PGR-GNU*/
29
30
-----------
31
32
--- mst
33
34
35
-
36
37
-----------------
38
--- _pgr_prim
39
40
41
42
--v3.7
43
CREATE FUNCTION _pgr_primv4(
44
TEXT, -- Edge sql
@@ -61,30 +49,3 @@ LANGUAGE C VOLATILE STRICT;
49
50
COMMENT ON FUNCTION _pgr_primv4(TEXT, ANYARRAY, TEXT, BIGINT, FLOAT)
51
IS 'pgRouting internal function';
---v3.0
-CREATE FUNCTION _pgr_prim(
67
- TEXT, -- Edge sql
68
- ANYARRAY, -- tree root for traversal
69
- order_by TEXT,
70
- max_depth BIGINT,
71
- distance FLOAT,
72
73
- OUT seq BIGINT,
- OUT depth BIGINT,
- OUT start_vid BIGINT,
- OUT node BIGINT,
- OUT edge BIGINT,
- OUT cost FLOAT,
- OUT agg_cost FLOAT)
-RETURNS SETOF RECORD AS
-'MODULE_PATHNAME'
82
-LANGUAGE C VOLATILE STRICT;
83
84
85
--- COMMENTS
86
87
88
-COMMENT ON FUNCTION _pgr_prim(TEXT, ANYARRAY, TEXT, BIGINT, FLOAT)
89
-IS 'pgRouting internal function deprecated on v3.7.0';
90
src/spanningTree/prim.c
@@ -171,7 +171,11 @@ PGDLLEXPORT Datum _pgr_primv4(PG_FUNCTION_ARGS) {
171
}
172
173
174
-/******************************************************************************/
+/* Deprecated code starts here
175
+ * This code is used on v3.6 and under
176
+ *
177
+ * TODO(v5) Move to legacy
178
+ */
179
180
PGDLLEXPORT Datum _pgr_prim(PG_FUNCTION_ARGS);
181
PG_FUNCTION_INFO_V1(_pgr_prim);
@@ -183,6 +187,12 @@ PGDLLEXPORT Datum _pgr_prim(PG_FUNCTION_ARGS) {
183
187
MST_rt *result_tuples = NULL;
184
188
size_t result_count = 0;
185
189
190
+ ereport(NOTICE, (
191
+ errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
192
+ errmsg("A stored procedure is using deprecated C internal function '%s'", __func__),
193
+ errdetail("Library function '%s' was deprecated in pgRouting %s", __func__, "3.7.0"),
194
+ errhint("Consider upgrade pgRouting")));
195
+
186
196
if (SRF_IS_FIRSTCALL()) {
197
MemoryContext oldcontext;
198
funcctx = SRF_FIRSTCALL_INIT();
0 commit comments