pub async fn publication_info(
    config: &Config,
    publication: &str,
    oid_filter: Option<u32>
) -> Result<Vec<PostgresTableDesc>, PostgresError>
Expand description

Fetches table schema information from an upstream Postgres source for tables that are part of a publication, given a connection string and the publication name.

If oid_filter is None, returns all tables, otherwise returns only the details for the identified oid.

Errors

  • Invalid connection string, user information, or user permissions.
  • Upstream publication does not exist or contains invalid values.