Hacked in lack of WITH ORDINALITY support, added extra sane defaults, changed trigger function accordingly to accomodate the latter.