Skip to content

Commit

Permalink
fix(electric): Preload internal schema in SchemaCache before looking …
Browse files Browse the repository at this point in the history
…up an internal relation (#693)

As a reminder, we have to have this internal schema in order for
Electric to be able to send writes to `electric.acknowledged_client_lsn`
over the Electric->PG logical replication connection.
  • Loading branch information
alco authored Nov 23, 2023
1 parent eb722c9 commit 9209cd6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ defmodule Electric.Postgres.Extension.SchemaCache do
end

def handle_call({:internal_relation, relation}, _from, state) do
state = load_internal_schema(state)
{:reply, Schema.table_info(state.internal_schema, relation), state}
end

Expand Down

0 comments on commit 9209cd6

Please sign in to comment.