According to this answer we know that QGIS does not get the SRS from the postgis spatial_ref_sys table. We have to define the custom SRID under QGIS.
Is there a way that QGIS can make the matching automatically between his custom CRS in QGIS and the Custom SRID in postgis?