<div dir="ltr"><div>Hi,</div><div><br></div><div>the reason for the different behavior is that the old QGIS version was using GDAL to access PG rasters while the new versions uses a QGIS native data provider which is using <span lang="EN-GB">ST_SummaryStatsAgg() to calculate statistics, I believe that this call can become very slow on large rasters and we should probably reduce the time by using a smaller sample size but this has to be implemented/fixed yet, feel free to file a ticket on the QGIS bug tracker.<br></span></div><div><br></div><div></div><div>The good news is the you can still load the raster from QGIS using the GDAL provider with a connection string that looks  like this:  "PG: dbname={dbname} mode=2 host={host} port={port} table={table} schema={schema} sslmode=disable"</div><div></div><div></div><div><br></div><div>Hope this helps.</div><div><br></div><div>Regards.<br></div><div><br></div></div>