opscode/chef_objects — pull request #11 by seth (2012-08-27 04:46:35+00:00)
Title: Remove DbType from chef_db_compression

By default, all data is gzip compressed. If a schema is being used
that required uncompressed node data, then the macro
CHEF_UNCOMPRESSED_NODE_DATA should be defined at compile time.

The signatures for chef_object:new_record and
chef_object:update_from_ejson no longer take the DbType argument.

There are PRs in chef_db, and chef_wm that are required once this is merged. Also note that since the CHEF_UNCOMPRESSED_NODE_DATA macro is not defined for the OSC erchef build, this change requires a schema change to the serialized object column of the node table.

You can test this locally with:

alter table nodes drop serialized_object;
alter table nodes add column serialized_object bytea;
alter table nodes alter serialized_object set storage external;