Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
export PATH=/usr/lib/postgresql/${PGVER}/bin:$PATH
mkdir build
cd build || exit 1
cmake -DPOSTGRESQL_VERSION=${PGVER} -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.12 -DPOSTGRESQL_VERSION=${PGVER} -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..
make -j 4
sudo make install

Expand Down
5 changes: 2 additions & 3 deletions pgtap/allpairs/floydWarshall/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ SELECT set_eq(
('{"","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_floydwarshall'$$,
SELECT function_types_eq('pgr_floydwarshall',
$$VALUES
('{25,16,20,20,701}'::OID[])
('{text,bool,int8,int8,float8}'::TEXT[])
$$);

SELECT finish();
Expand Down
5 changes: 2 additions & 3 deletions pgtap/allpairs/johnson/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ SELECT set_eq(
('{"","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_johnson'$$,
SELECT function_types_eq('pgr_johnson',
$$VALUES
('{25,16,20,20,701}'::OID[])
('{text,bool,int8,int8,float8}'::TEXT[])
$$);

SELECT finish();
Expand Down
26 changes: 13 additions & 13 deletions pgtap/bdDijkstra/bdDijkstraCost/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ WHEN min_version('3.2.0') THEN
('{"","","","directed","start_vid","end_vid","agg_cost"}'::TEXT[]),
('{"","","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$),
set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bddijkstracost'$$,

function_types_eq('pgr_bddijkstracost',
$$VALUES
('{25,25,16,20,20,701}'::OID[]),
('{25,20,20,16,20,20,701}'::OID[]),
('{25,20,2277,16,20,20,701}'::OID[]),
('{25,2277,20,16,20,20,701}'::OID[]),
('{25,2277,2277,16,20,20,701}'::OID[])
('{text,text,bool,int8,int8,float8}'::TEXT[]),
('{text,int8,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int8,int8,float8}'::TEXT[])
$$)
)
ELSE
Expand All @@ -80,13 +80,13 @@ ELSE
('{"","","","directed","start_vid","end_vid","agg_cost"}'::TEXT[]),
('{"","","","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$),
set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bddijkstracost'$$,

function_types_eq('pgr_bddijkstracost',
$$VALUES
('{25,20,20,16,20,20,701}'::OID[]),
('{25,20,2277,16,20,20,701}'::OID[]),
('{25,2277,20,16,20,20,701}'::OID[]),
('{25,2277,2277,16,20,20,701}'::OID[])
('{text,int8,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int8,int8,float8}'::TEXT[])
$$)
)
END;
Expand Down
5 changes: 2 additions & 3 deletions pgtap/bdDijkstra/bdDijkstraCostMatrix/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ SELECT set_eq(
('{"","","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bddijkstracostmatrix'$$,
SELECT function_types_eq('pgr_bddijkstracostmatrix',
$$VALUES
('{25,2277,16,20,20,701}'::OID[])
('{text,anyarray,bool,int8,int8,float8}'::TEXT[])
$$);

SELECT finish();
Expand Down
24 changes: 11 additions & 13 deletions pgtap/bellman_ford/bellman_ford/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ BEGIN
$$
),

set_has(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bellmanford'$$,
function_types_eq('pgr_bellmanford',
$$VALUES
('{25,20,20,16,23,23,20,20,701,701}'::OID[]),
('{25,20,2277,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,20,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,2277,16,23,23,20,20,20,20,701,701}'::OID[]),
('{25,25,16,23,23,20,20,20,20,701,701}'::OID[])
('{text,int8,int8,bool,int4,int4,int8,int8,float8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,text,bool,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[])
$$
)
)
Expand All @@ -87,13 +86,12 @@ BEGIN
$$
),

set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bellmanford'$$,
function_types_eq('pgr_bellmanford',
$$VALUES
('{25,20,20,16,23,23,20,20,701,701}'::OID[]),
('{25,20,2277,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,20,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,2277,16,23,23,20,20,20,20,701,701}'::OID[])
('{text,int8,int8,bool,int4,int4,int8,int8,float8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[])
$$
)
)
Expand Down
24 changes: 11 additions & 13 deletions pgtap/bellman_ford/edwardMoore/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ BEGIN
$$
),

set_has(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_edwardmoore'$$,
function_types_eq('pgr_edwardmoore',
$$VALUES
('{25,20,20,16,23,23,20,20,701,701}'::OID[]),
('{25,20,2277,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,20,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,2277,16,23,23,20,20,20,20,701,701}'::OID[]),
('{25,25,16,23,23,20,20,20,20,701,701}'::OID[])
('{text,int8,int8,bool,int4,int4,int8,int8,float8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,text,bool,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[])
$$
)
)
Expand All @@ -87,13 +86,12 @@ BEGIN
$$
),

set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_edwardmoore'$$,
function_types_eq('pgr_edwardmoore',
$$VALUES
('{25,20,20,16,23,23,20,20,701,701}'::OID[]),
('{25,20,2277,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,20,16,23,23,20,20,20,701,701}'::OID[]),
('{25,2277,2277,16,23,23,20,20,20,20,701,701}'::OID[])
('{text,int8,int8,bool,int4,int4,int8,int8,float8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int4,int4,int8,int8,int8,float8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[])
$$
)
)
Expand Down
6 changes: 2 additions & 4 deletions pgtap/chinese/chinesePostman/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ SELECT set_eq(
$$SELECT '{"", "seq", "node", "edge", "cost", "agg_cost"}'::TEXT[] $$
);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_chinesepostman'$$,
$$SELECT '{25,23,20,20,701,701}'::OID[] $$
);
SELECT function_types_eq('pgr_chinesepostman',
$$VALUES ('{text,int4,int8,int8,float8,float8}'::TEXT[]) $$);

SELECT * FROM finish();
ROLLBACK;
5 changes: 2 additions & 3 deletions pgtap/chinese/chinesePostmanCost/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ SELECT set_eq(
$$SELECT 701 $$
);

SELECT set_eq(
$$SELECT proargtypes from pg_proc where proname = 'pgr_chinesepostmancost'$$,
$$SELECT '[0:0]={25}'::OID[] $$
SELECT function_types_eq('pgr_chinesepostmancost',
$$SELECT '{text}'::TEXT[] $$
);


Expand Down
5 changes: 2 additions & 3 deletions pgtap/circuits/hawickCircuits/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ SELECT set_eq(
$$);

RETURN QUERY
SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_hawickcircuits'$$,
SELECT function_types_eq('pgr_hawickcircuits',
$$VALUES
('{25,23,23,23,20,20,20,20,701,701}'::OID[])
('{text,int4,int4,int4,int8,int8,int8,int8,float8,float8}'::TEXT[])
$$);

END;
Expand Down
5 changes: 2 additions & 3 deletions pgtap/coloring/bipartite/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ BEGIN
);

RETURN QUERY
SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bipartite'$$,
SELECT function_types_eq('pgr_bipartite',
$$VALUES
('{25,20,20}'::OID[])
('{text,int8,int8}'::TEXT[])
$$
);
END;
Expand Down
5 changes: 2 additions & 3 deletions pgtap/coloring/edgeColoring/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ BEGIN
);

RETURN QUERY
SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_edgecoloring'$$,
SELECT function_types_eq('pgr_edgecoloring',
$$VALUES
('{25,20,20}'::OID[])
('{text,int8,int8}'::TEXT[])
$$
);

Expand Down
5 changes: 2 additions & 3 deletions pgtap/coloring/sequentialVertexColoring/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ BEGIN
);

RETURN QUERY
SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_sequentialvertexcoloring'$$,
SELECT function_types_eq('pgr_sequentialvertexcoloring',
$$VALUES
('{25,20,20}'::OID[])
('{text,int8,int8}'::TEXT[])
$$
);
END;
Expand Down
5 changes: 2 additions & 3 deletions pgtap/components/articulationPoints/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ SELECT set_eq(
$$SELECT '{"", "node"}'::TEXT[] $$
);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_articulationpoints'$$,
$$SELECT '{25,20}'::OID[] $$
SELECT function_types_eq('pgr_articulationpoints',
$$VALUES ('{text,int8}'::TEXT[]) $$
);

SELECT * FROM finish();
Expand Down
5 changes: 2 additions & 3 deletions pgtap/components/biconnectedComponents/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ SELECT set_eq(
$$SELECT '{"", "seq","component","edge"}'::TEXT[] $$
);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_biconnectedcomponents'$$,
$$SELECT '{25,20,20,20}'::OID[] $$
SELECT function_types_eq('pgr_biconnectedcomponents',
$$VALUES ('{text,int8,int8,int8}'::TEXT[])$$
);

SELECT * FROM finish();
Expand Down
5 changes: 2 additions & 3 deletions pgtap/components/bridges/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ SELECT set_eq(
$$SELECT '{"", "edge"}'::TEXT[] $$
);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_bridges'$$,
$$SELECT '{25,20}'::OID[] $$
SELECT function_types_eq('pgr_bridges',
$$VALUES ('{text,int8}'::TEXT[])$$
);

SELECT * FROM finish();
Expand Down
5 changes: 2 additions & 3 deletions pgtap/components/connectedComponenes/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ SELECT set_eq(
$$SELECT '{"", "seq","component","node"}'::TEXT[] $$
);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_connectedcomponents'$$,
$$SELECT '{25,20,20,20}'::OID[] $$
SELECT function_types_eq('pgr_connectedcomponents',
$$VALUES ('{text,int8,int8,int8}'::TEXT[])$$
);

SELECT * FROM finish();
Expand Down
5 changes: 2 additions & 3 deletions pgtap/components/makeConnected/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ BEGIN
);

RETURN QUERY
SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_makeconnected'$$,
SELECT function_types_eq('pgr_makeconnected',
$$VALUES
('{25,20,20,20}'::OID[])
('{text,int8,int8,int8}'::TEXT[])
$$
);
END;
Expand Down
5 changes: 2 additions & 3 deletions pgtap/components/strongComponenets/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ SELECT set_eq(
$$SELECT '{"", "seq","component","node"}'::TEXT[] $$
);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_strongcomponents'$$,
$$SELECT '{25,20,20,20}'::OID[] $$
SELECT function_types_eq('pgr_strongcomponents',
$$VALUES ('{text,int8,int8,int8}'::TEXT[])$$
);

SELECT * FROM finish();
Expand Down
7 changes: 3 additions & 4 deletions pgtap/contraction/contraction/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ BEGIN
('{"",directed,methods,cycles,forbidden,type,id,contracted_vertices,source,target,cost}'::TEXT[])
$$,'pgr_contraction: Column names');

RETURN QUERY SELECT function_types('pgr_contraction',
RETURN QUERY SELECT function_types_eq('pgr_contraction',
$$VALUES ('{text,bool,_int4,int4,_int8,text,int8,_int8,int8,int8,float8}'::TEXT[]),
('{text,_int8,int4,_int8,bool,text,int8,_int8,int8,int8,float8}'::TEXT[]) $$);

Expand All @@ -48,9 +48,8 @@ BEGIN
('{"", "", "max_cycles", "forbidden_vertices", "directed", "type", "id", "contracted_vertices", "source", "target", "cost"}'::TEXT[])
$$);

RETURN QUERY SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_contraction'$$,
$$SELECT '{25,1016,23,1016,16,25,20,1016,20,20,701}'::OID[] $$
RETURN QUERY SELECT function_types_eq('pgr_contraction',
$$VALUES ('{text,_int8,int4,_int8,bool,text,int8,_int8,int8,int8,float8}'::TEXT[])$$
);

END IF;
Expand Down
2 changes: 1 addition & 1 deletion pgtap/contraction/contractionDeadEnd/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ BEGIN
('{"","directed","forbidden","type","id","contracted_vertices","source","target","cost"}'::TEXT[])
$$);

RETURN QUERY SELECT function_types('pgr_contractiondeadend',
RETURN QUERY SELECT function_types_eq('pgr_contractiondeadend',
$$VALUES ('{text,bool,_int8,text,int8,_int8,int8,int8,float8}'::TEXT[]) $$);

END;
Expand Down
2 changes: 1 addition & 1 deletion pgtap/contraction/contractionLinear/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ BEGIN
('{"",directed,forbidden,type,id,contracted_vertices,source,target,cost}'::TEXT[])
$$,'pgr_contractionlinear: Column names');

RETURN QUERY SELECT function_types('pgr_contractionlinear',
RETURN QUERY SELECT function_types_eq('pgr_contractionlinear',
$$VALUES ('{text,bool,_int8,text,int8,_int8,int8,int8,float8}'::TEXT[]) $$);

END;
Expand Down
24 changes: 11 additions & 13 deletions pgtap/dijkstra/dijkstraCost/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ WHEN min_version('3.1.0') THEN
('{"","","","directed","start_vid","end_vid","agg_cost"}'::TEXT[]),
('{"","","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$),
set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_dijkstracost'$$,
function_types_eq('pgr_dijkstracost',
$$VALUES
('{25,25,16,20,20,701}'::OID[]),
('{25,20,20,16,20,20,701}'::OID[]),
('{25,20,2277,16,20,20,701}'::OID[]),
('{25,2277,20,16,20,20,701}'::OID[]),
('{25,2277,2277,16,20,20,701}'::OID[])
('{text,text,bool,int8,int8,float8}'::TEXT[]),
('{text,int8,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int8,int8,float8}'::TEXT[])
$$)
)
ELSE
Expand All @@ -80,13 +79,12 @@ ELSE
('{"","","","directed","start_vid","end_vid","agg_cost"}'::TEXT[]),
('{"","","","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$),
set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_dijkstracost'$$,
function_types_eq('pgr_dijkstracost',
$$VALUES
('{25,20,20,16,20,20,701}'::OID[]),
('{25,20,2277,16,20,20,701}'::OID[]),
('{25,2277,20,16,20,20,701}'::OID[]),
('{25,2277,2277,16,20,20,701}'::OID[])
('{text,int8,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,int8,anyarray,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,int8,bool,int8,int8,float8}'::TEXT[]),
('{text,anyarray,anyarray,bool,int8,int8,float8}'::TEXT[])
$$)
)
END;
Expand Down
Loading