<div dir="ltr"><div class="gmail_default" style="font-size:small">On Tue, May 22, 2018 at 3:36 PM, Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">It seems like the Processing "PostGIS execute SQL" tool does not provide a straightforward way to load the query results. Is there another way in Processing to execute a query and get the results as a layer? </div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">​Since there doesn't seem to be a tool that covers this functionality, I implemented one. The PR is here: <a href="https://github.com/qgis/QGIS/pull/7064">https://github.com/qgis/QGIS/pull/7064</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It creates an output layer containing the query result features. My original plan was to just load a PostGIS layer based on the query but that didn't work out.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Regards,</div></div><div class="gmail_default" style="font-size:small">Anita</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div><br></div></div>