#225824 by jruberto. fix for pgsql, as 'offset' is a reserved name and it needs to be quoted wen used as a field name.