Skip to content

PostgreSQLSeverity.unknown 53200: out of memory Detail: Failed on request of size 360 in memory context "CacheMemoryContext". #6

@bubnenkoff

Description

@bubnenkoff
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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions