Added the postgres reader. Closes patch #6388