As noticed in dev list, that part of code has a lack of detailed error
message, and community is working on it. In the meanwhile, I can only
suggest to:

1) check log panel
2) check server messages
3) use a qgis "with debug" version and setup QGIS_DEBUG var to see more messages

probably the point 2 is enough

btw from a postgres client, try the same query done by the postgres provider:

look in the same code for saveStyle method to understand how the table
is created.

Luigi Pirelli

* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn:
* Stackexchange:
* GitHub:
* Mastering QGIS 2nd Edition:

On 13 January 2017 at 03:23, Tony Bazeley <> wrote:
> Hi,
> I'm having some trouble attempting to work with styles in postgresql.
> I can successfully save a style to the database - table layer_styles is
> created and populated.
> But attempting to load brings up the 'Load Style from database dialog' with
> messages "No styles found in database'
> Am using QGIS 2.18.2 with postgresql 9.6 and postgis 2.3
> Would appreciate any thoughts on how to progress.
> Thanks
> Tony
> _______________________________________________
> Qgis-user mailing list
> List info:
> Unsubscribe:
Qgis-user mailing list
List info:

Reply via email to