Skip to content

Logical replication: do normal type loading #4286

Closed

Description

@roji

See discussion from #4066 (comment) down.

To summarize, we currently do NoTypeLoading for logical replication, limiting it to only a constrained set of types (no composites, enums, arrays...); we should remove that limitation. Physical replication connections can't do normal queries, so should continue using NoTypeLoading (this isn't a problem as Npgsql doesn't decode types anyway).

Let's see what the fix looks like and then decide whether to backport it to 6.0.

Activity

  1. added this to the 7.0.0 milestone on Jan 20, 2022
  2. roji commented on Jan 22, 2022

    @roji
    MemberAuthor

    @Brar do you feel this is safe enough to backport to 6.0.3?

  3. Brar commented on Jan 22, 2022

    @Brar
    Member

    Yes.

  4. roji commented on Jan 22, 2022

    @roji
    MemberAuthor

    OK, let me know if you want to do it, otherwise I can do it.

  5. modified the milestones: 7.0.0, 6.0.3 on Jan 22, 2022
  6. Brar commented on Jan 22, 2022

    @Brar
    Member

    I'm already in the middle of it.
    The most dangerous part is getting the indentation right 🤣

  7. roji commented on Jan 22, 2022

    @roji
    MemberAuthor

    I know, it's awful 🤦‍♂️ It was such a bad idea to apply the new indentation after releasing 6.0 - had I done it before the release, all the backporting would have been so much easier...

  8. Brar commented on Jan 22, 2022

    @Brar
    Member

    Why don't we apply the indentation changes to 6.0.3 before we release?
    It's an automated change that should be pretty safe and it will save us a lot of manual labor when backporting.

  9. roji commented on Jan 22, 2022

    @roji
    MemberAuthor

    I guess we could... In principle, we shouldn't be backporting that much (and definitely not stuff with huge amounts of code). But maybe you're right.

  10. Brar commented on Jan 22, 2022

    @Brar
    Member

    I know it feels weird to "backport" a change that touches every single file but it's a klick in Rider that went well for the main branch so why should it fail for hotfix/6.0.3?

  11. roji commented on Jan 28, 2022

    @roji
    MemberAuthor

    Hesitated for a bit, then decided it makes sense :) I think there's more risk from a botched backport because of spurious indentation-related conflicts than there is from this one-time automated Rider action.

  12. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions