in
[["retVal"]] @ List.map (fun l -> [l]) (pgresult_to_string_list res)*)
let qq = "select uri from registry where uri " ^ (pattern_match (apreamble, apattern, afragid)) ^ " order by registry.uri asc" in
+print_endline qq ; flush stderr ;
(*let _ = print_endline qq in*)
let res =
c#exec (qq)