<div dir="ltr"><div dir="ltr">Richard, Jeroen, list;<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 4, 2021 at 2:02 AM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/4/21 10:16 AM, Groene Bij wrote:<br>
> Take this example: <br>
> I would like to see DB Manager as just a shell or GUI which will work with<br>
> every postgresql and postgis version the same way, but in fact it isn't. I<br>
> found DB manager to work differently from qgis3.10 to 3.12 and above.<br>
> Something changed and as a result, simple select queries can take up 10 to a<br>
> 100 times longer in qgis3.12 and up compared to qgis3.10<br>
> (see also <a href="https://github.com/qgis/QGIS/issues/40643" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/issues/40643</a>)<br>
> <br>
> So, I am mostly looking for some kind of reassurance. Things like: qgis3.16<br>
> will work fine with postgresql version a to d and postgis version f to l. Or<br>
> qgis will work fine with any postgresql above version x and postgis above<br>
> version y. I do realize these are difficult statements to make (how to test<br>
> them?)<br>
<br>
Hi Jeroen,<br>
<br>
I think you are complicating things :-)<br>
<br>
There are postgres/gis SERVER versions<br>
And postgres/gis/ CLIENT LIBRARY version<br>
<br>
In general: IF you have a SERVER version you should try to have the same CLIENT (=library) version.<br>
BUT: only to be able to do the new things introduced in the SERVER version OR to have a better client version because they fixed bugs in that client(library) version.<br>
In general: you can probably also connect to a new SERVER version with an older CLIENT (unless off course you want to do things that at the time of the CLIENT version was just not possible).<br>
<br>
My guess: your issue above has anything to do with the pg client libraries used, or the combi server/client.<br>
Chances are bigger that either QGIS is now running other SQL queries OR the logic (of loops for example) in QGIS has changed.<br></blockquote><div><br></div><div>Just to complement what Richard is saying here, I mostly use PostgreSQL separately from QGIS, for non-spatial purposes.</div><div><br></div><div>On my laptop running Ubuntu 20.10, I have three versions of PostgreSQL installed: 10.7, 11.7 and 12.5.  When I'm running PostgreSQL locally (ie same machine client and server, the default configuration is 12.5 client talking to 10.7 server.  I didn't do that on purpose; it's just ended up that way, probably due to upgrading my O/S every six months without doing anything about moving the databases stored there from one version to the next.<br></div><div><br></div><div>Using my laptop to connect remotely (with the --host option)  to a customer's server running Ubuntu 18.04, I use the same 12.5 client to talk to a 10.15 server.</div><div><br></div><div>On a different customer's machine, also running Ubuntu 18.04, where I cannot connect remotely, I use ssh to gain access to the server and run PostgreSQL locally there, where I have a 10.15 client talking to a 10.15 server.</div><div><br></div><div>And so on.  In my mmm 15 or so years of experience with PostgreSQL, it's somewhat unusual to find oneself connecting clients and servers of the same version, and I don't recall ever having problems with this situation.</div><div><br></div><div>Of course, I'm far from exercising the leading-edge capabilities in PostgreSQL, so your mileage may vary and all that.</div><div><br></div><div>If you are concerned about those new features coming out with each release, a bit of googling will lead you to useful articles like this one:</div><div><br></div><div><a href="https://www.postgresql.org/about/news/postgresql-12-released-1976/">https://www.postgresql.org/about/news/postgresql-12-released-1976/</a></div><div><br></div><div>I hope this helps.<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>