Skip to content

Support repacking tables with referring foreign keys in non-default schemas #57

@Bouallegui-Moudhaffer

Description

@Bouallegui-Moudhaffer

Psycopack already tracks referring FK schema metadata, but repacking currently rejects referring foreign keys outside the target table’s schema.

Proposed scope for this PR:

  • allow referring FKs from other schemas
  • preserve constraint validation state
  • keep ownership / privilege checks explicit
  • add regression tests for a table in public referenced from another schema
  • support both DIRECT_TRIGGER and CHANGE_LOG

Non-goals:

  • changing behavior for referred FKs
  • partitioning or broader schema-management features

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions