In the TCustomPgDataSet.Execute(PgAccess) becomes TCRConnection.FAutoCommit(CRAccess) set to false and not reset after the exception in the RefreshRecord.
Then the error dialog, through our THauptForm.ShowServerTimer a ConnectionCheck with "Select true," starts in the TPgSQLCommand.Execute(PgClasses) a transaction, because still Connection.AutoCommit on false and then it provokes exceptions everywhere:
Bugfix proposal: