I need to find the correct path to use tables and views from a PostGIS database in QGIS. The database was populated importing shapefiles with QGIS DBmanager, and then other tables and views where produced with SQL sentences. When I use algorithms involving interpolation or kriging from GRASS or SAGA, no one works. I'm using a projected file, and when apply the QGIS native algorithms works fine (idw). The error shows some problem with the temporary .shp file created. So, my best guess is that the problem is with the usage of a database file. I have already try using directly the file from the database, or exporting it with pgsql2shp, with PostGIS shapefile import/export manager, or with QGIS complement DBmanager. Same result.
I'm using QGIS 2.14 and 3.8, the same problem in both. Windows 10, PostgreSQL 10, PostGIS bundle 2.4.4.