Unhandled exception:
PostgreSQLSeverity.unknown 53200: out of memory Detail: Failed on request of size 360 in memory context "CacheMemoryContext".
===== asynchronous gap ===========================
package:postgres_pool/postgres_pool.dart 322 PgPool.run.<fn>
package:retry/retry.dart 131 RetryOptions.retry
package:postgres_pool/postgres_pool.dart 320 PgPool.run
bin\parser_middleware.dart 53 main.<fn>
unparsed <asynchronous suspension>
void main() async {
pg = PgPool(
PgEndpoint(
host: 'localhost',
port: 5432,
database: 'db',
username: 'postgres',
password: '123'),
settings: PgPoolSettings()
..maxConnectionAge = Duration(hours: 1)
..concurrency = 4,
) ;
//...
possible error place:
Future<dynamic> getListOfFilesForProcessing(Map body) async {
try {
final f = pg.run((c) async {
final rs = await c.query(
body['sql']
);
// print("getListOfFilesForProcessing: ${rs} ");
return rs;
});
return f;
} on PostgreSQLException catch (e) {
writeLog('getListOfFilesForProcessing', e.message);
}