# `Electric.Replication.PublicationManager`
[🔗](https://github.com/electric-sql/electric/tree/%40core/sync-service%401.6.2/packages/sync-service/lib/electric/replication/publication_manager.ex#L1)

Manages a PostgreSQL publication for a given Electric stack, tracking shapes
and ensuring that the publication configuration matches the required set of
relations that need to be published for the shapes to function correctly.

Includes periodic checks of the publication to ensure that it remains valid,
and expires any shapes that are no longer valid due to schema changes or
permission issues.

# `add_shape`

# `child_spec`

# `name`

# `remove_shape`

# `start_link`

# `wait_for_restore`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
