no-mistakes-postgres-engine 0.109.128

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
//! Preserve the rolled-up relation universe for rules unrelated to leaf-local keys.
use super::{CatalogTable, RelationKind, SchemaCatalog};

impl SchemaCatalog {
    pub fn logical_tables(&self) -> impl Iterator<Item = &CatalogTable> {
        self.tables().filter(|table| {
            table.partition_of.is_none() || table.relation_kind == RelationKind::PartitionedTable
        })
    }
}