Skip to content

ROM-SQL Connection remains on development #115

Description

@alex-lairan

Describe the bug

ROM keep previous connections when rails reload the codebase.
Due to this behavior, after some changes you get a

PG::ConnectionBad: FATAL:  remaining connection slots are reserved for non-replication superuser connections

To Reproduce

A Rails app with ROM and ROM-SQL.

Change multiple times the codebase with the Rails server started.

Expected behavior

After each reload, ROM should clear his connections.

Your environment

  • Affects my production application: NO
  • Ruby version: 2.6.6
  • OS: All

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions