-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nike0good
authored and
nike0good
committed
Jun 9, 2019
1 parent
5d76ad0
commit 75c2cb3
Showing
4 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
BEGIN; | ||
BEGIN | ||
SET client_min_messages TO NOTICE; | ||
SET | ||
SELECT * FROM pgr_topologicalSort( | ||
'SELECT id, source, target, cost, reverse_cost FROM edge_table' | ||
); | ||
ERROR: function pgr_topologicalsort(unknown) does not exist | ||
LINE 1: SELECT * FROM pgr_topologicalSort( | ||
^ | ||
HINT: No function matches the given name and argument types. You might need to add explicit type casts. | ||
-- q1 | ||
SELECT * FROM pgr_topologicalSort( | ||
'SELECT id, source, target, cost, reverse_cost | ||
FROM edge_table | ||
WHERE id < 17' | ||
); | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
-- q2 | ||
SELECT * FROM pgr_topologicalSort( | ||
'SELECT id, source, target, cost, reverse_cost | ||
FROM edge_table | ||
WHERE id = 18' | ||
); | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
-- q3 | ||
SELECT * FROM pgr_topologicalSort( | ||
$$ | ||
SELECT id, source, target, cost, reverse_cost FROM edge_table | ||
where source = any (ARRAY(SELECT node FROM pgr_connectedComponents( | ||
'SELECT id, source, target, cost, reverse_cost FROM edge_table ') | ||
WHERE component = 14) | ||
) | ||
OR | ||
target = any (ARRAY(SELECT node FROM pgr_connectedComponents( | ||
'SELECT id, source, target, cost, reverse_cost FROM edge_table ') | ||
WHERE component = 14) | ||
) | ||
$$ | ||
); | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
-- q4 | ||
ROLLBACK; | ||
ROLLBACK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
BEGIN; | ||
BEGIN | ||
SET client_min_messages TO NOTICE; | ||
SET | ||
SELECT * FROM pgr_topologicalSort( | ||
\'SELECT id, source, target, cost, reverse_cost FROM edge_table\' | ||
); | ||
ERROR: function pgr_topologicalsort(unknown) does not exist | ||
LINE 1: SELECT * FROM pgr_topologicalSort( | ||
^ | ||
HINT: No function matches the given name and argument types. You might need to add explicit type casts. | ||
-- q1 | ||
SELECT * FROM pgr_topologicalSort( | ||
\'SELECT id, source, target, cost, reverse_cost | ||
FROM edge_table | ||
WHERE id < 17\' | ||
); | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
-- q2 | ||
SELECT * FROM pgr_topologicalSort( | ||
\'SELECT id, source, target, cost, reverse_cost | ||
FROM edge_table | ||
WHERE id = 18\' | ||
); | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
-- q3 | ||
SELECT * FROM pgr_topologicalSort( | ||
$$ | ||
SELECT id, source, target, cost, reverse_cost FROM edge_table | ||
where source = any (ARRAY(SELECT node FROM pgr_connectedComponents( | ||
\'SELECT id, source, target, cost, reverse_cost FROM edge_table \') | ||
WHERE component = 14) | ||
) | ||
OR | ||
target = any (ARRAY(SELECT node FROM pgr_connectedComponents( | ||
\'SELECT id, source, target, cost, reverse_cost FROM edge_table \') | ||
WHERE component = 14) | ||
) | ||
$$ | ||
); | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
-- q4 | ||
ROLLBACK; | ||
ROLLBACK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters