contrib/indexscan/indexscan.sql.in (4 lines of code) (raw):
-- select * from readindex('pg_class_oid_index'::regclass) as (ictid tid, hctid tid, aotid text, istatus text, hstatus text, oid oid);
CREATE OR REPLACE FUNCTION readindex(oid) RETURNS SETOF record AS
'$libdir/indexscan', 'readindex'
LANGUAGE C STRICT VOLATILE;