--
-- date_cmp_timestamp/2
--
create or replace function date_cmp_timestamp(
  date,
  timestamp without time zone
) returns int4 as $$
date_cmp_timestamp$$ language plpgsql;