Skip to content

Not works with Amazon Aurora #270

@mats16

Description

@mats16

Bug report

Describe the bug

The supabase-realtime server does not work with Amazon Aurora PostgreSQL.

To Reproduce

  1. Change parameters for replications
      parameters: {
        'rds.logical_replication': '1',
        'max_replication_slots': '5',
        'max_wal_senders': '10',
        'max_logical_replication_workers': '2',
        'max_slot_wal_keep_size': '1024',
      },
  1. Create PostgreSQL Cluster (v14.3)

  2. Launch supabase-realtime server and connect DB

  3. The following log is displayed

2022-08-02 00:41:28.315 [info] Running RealtimeWeb.Endpoint with cowboy 2.8.0 at :::4000 (http)

2022-08-02 00:41:28.316 [info] Access RealtimeWeb.Endpoint at http://localhost:4000

2022-08-02 00:42:28.341 [error] %RuntimeError{message: "operation :rollback is manually rolling back, which is not supported by Ecto.Multi"}

2022-08-02 00:42:28.377 [error] %Postgrex.Error{connection_id: 16419, message: nil, postgres: %{code: :undefined_object, file: "slot.c", line: "418", message: "replication slot \"realtime_rls\" does not exist", pg_code: "42704", routine: "ReplicationSlotAcquire", severity: "ERROR", unknown: "ERROR"}, query: nil}

Expected behavior

It works well, because it does not rely on extensions.

Screenshots

N/A

System information

  • Version of supabase-realtime: v0.22.7
  • Version of PostgreSQL: 14.3

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp4Priority 4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions