
drop type pg_prepared_query_plan cascade;

create type pg_prepared_query_plan as (
  plan_name varchar,
  plan_sql varchar,
  exec_count integer,
  create_time timestamp with time zone,
  access_time timestamp with time zone
);

create or replace function pg_prepared_query_plans()
   returns setof pg_prepared_query_plan
   as 'prepare'
   language c immutable strict;

