1
    CREATE OR REPLACE FUNCTION shortest_path(
                      sql text, 
                      source_id integer, 
                      target_id integer, 
                      directed boolean, 
                      has_reverse_cost boolean)
    RETURNS SETOF path_result
    AS '$libdir/librouting'
    LANGUAGE 'C' IMMUTABLE STRICT;

When I try to Create a Function like the above I am getting a error like language C Does not exist

Postgres Version 9.3 x86 PostGIS Version - postgis Bundle Version 2.1(with pgrouting 2.0)

Vivek S.
  • 19,945
  • 7
  • 68
  • 85
Anas A
  • 199
  • 4
  • 19
  • Does this answer your question: http://stackoverflow.com/questions/12514664/postgresql-procedural-language-c-not-found. Basically, change the C to a c and reload the function definition. – John Powell Oct 30 '14 at 07:07
  • 4
    The language name is an **identifier** not a string value. So you should **not** use single quotes for it. `language c` should work just fine. Using single quotes to specify the language is a deprecated feature that is only supported for backwards compatibility. –  Oct 30 '14 at 07:39
  • yes now i figured out – Anas A Oct 30 '14 at 07:39

0 Answers0