SELECT * FROM pgr_dijkstra(
$$SELECT * FROM edge_table$$, -- edges sql query
--- the combinations query
$$WITH _src(seq1, id1) AS(
SELECT nextval('serial1'), id FROM sample1 limit 100
), _dest(seq2, id2) AS(
SELECT nextval('serial2'), id FROM sample2 limit 100
)
SELECT id1 AS source, id2 AS target
FROM _src, _dest
WHERE seq1=seq2
$$);
CREATE TABLE foobar
WITH _src(seq1, id1) AS(
SELECT nextval('serial1'), id FROM sample1 limit 100
), _dest(seq2, id2) AS(
SELECT nextval('serial2'), id FROM sample2 limit 100
)
SELECT id1 AS source, id2 AS target
FROM _src, _dest
WHERE seq1=seq2;
SELECT * FROM pgr_dijkstra(
$$SELECT * FROM edge_table$$, -- edges sql query
--- the combinations query
$$SELECT * FROM foobar$$);
The master branch has been updated, so you need to update the working branch
Steps:
If you haven't started coding:
git fetch gsoc
git checkout gsoc/<your branch>
git checkout -b <branch name>
git fetch upstream
git rebase upstream/master
git push --set-upstream origin <branch name>
And make a PR from <branch name> to gsoc/<your branch>
If you already started coding on branch: <branch name>
git checkout <branch name>
git fetch upstream
git rebase upstream/master
git push
And make a PR from <branch name> to gsoc/<your branch>
I will check those PR (in my) tonight
Why the same build passes on appveyor and fails on travis-ci.
@rajhim2 I don't have any idea how it passes on appveyor, however, there's an error in your added files.
In the file src/kargersContraction/kargersContraction.c
, the function's name shall be in all lowercase, as PostgreSQL converts all unquoted names to lowercase (_pgr_kargerscontraction
instead of _pgr_kargersContraction
).
You need to change this in all the three lines:
https://github.com/rajhim2/GSoC-pgRouting/blob/him/src/kargersContraction/kargersContraction.c#L43
https://github.com/rajhim2/GSoC-pgRouting/blob/him/src/kargersContraction/kargersContraction.c#L44
https://github.com/rajhim2/GSoC-pgRouting/blob/him/src/kargersContraction/kargersContraction.c#L116
Why the same build passes on appveyor and fails on travis-ci.
@rajhim2 I don't have any idea how it passes on appveyor, however, there's an error in your added files.
In the file
src/kargersContraction/kargersContraction.c
, the function's name shall be in all lowercase, as PostgreSQL converts all unquoted names to lowercase (_pgr_kargerscontraction
instead of_pgr_kargersContraction
).You need to change this in all the three lines:
https://github.com/rajhim2/GSoC-pgRouting/blob/him/src/kargersContraction/kargersContraction.c#L43
https://github.com/rajhim2/GSoC-pgRouting/blob/him/src/kargersContraction/kargersContraction.c#L44
https://github.com/rajhim2/GSoC-pgRouting/blob/him/src/kargersContraction/kargersContraction.c#L116
Thank you @krashish8 ! It worked like a charm.
Once that
From the console terminal:
# make sure that you are in the correct branch
git checkout combinationsSQL
# update to latest main repo contents
git fetch upstream
# Put your work on top of what develop
git rebase upstream/develop
Once you have updated the repo, the following that I forgot to mention on our last meeting must be done:
in doc/src/release_notes.rst
in the corresponding 3.1.0 release notes add
.. rubric:: New functions
* pgr_dijkstra(combinations)
From the github website: