CREATE TYPE sessionType AS ( a int4, b int4, c int4); 

CREATE OR REPLACE FUNCTION 
sessionData()
RETURNS sessionType AS
'/home/ubuntu/test.so', 'session_get'
LANGUAGE 'c' STABLE;

SELECT sessionData();

