I would like to write a Python macro that upon opening my QGIS project file will reload the default style for each layer from the PostgreSQL 'layer_style' table. I have had a look at the documentation and can only work out how this is done from a SQLite db or .qml file.
Any pointers?