Added custom dictionary support for postgres