diff --git a/store/datastore/sql/postgres/files/procs.sql b/store/datastore/sql/postgres/files/procs.sql index 7f336885..3c80b8ac 100644 --- a/store/datastore/sql/postgres/files/procs.sql +++ b/store/datastore/sql/postgres/files/procs.sql @@ -37,6 +37,7 @@ SELECT ,proc_environ FROM procs WHERE proc_build_id = $1 +ORDER BY proc_pid ASC -- name: procs-find-build-pid diff --git a/store/datastore/sql/postgres/sql_gen.go b/store/datastore/sql/postgres/sql_gen.go index 24f37a61..e1476033 100644 --- a/store/datastore/sql/postgres/sql_gen.go +++ b/store/datastore/sql/postgres/sql_gen.go @@ -164,6 +164,7 @@ SELECT ,proc_environ FROM procs WHERE proc_build_id = $1 +ORDER BY proc_pid ASC ` var procsFindBuildPid = `