CREATE OR REPLACE FUNCTION public.list_extensions()
RETURNS TABLE (
  ext_name text,
  ext_comment text,
  default_version text,
  installed_version text
)
LANGUAGE sql
STABLE
AS $$
  SELECT
    e.name,
    e.comment,
    e.default_version,
    e.installed_version
  FROM pg_available_extensions e
  ORDER BY e.name ASC;
$$;
