Initial support for sending metadata to postgres