Skip to content

Replication: better access to value metadata (e.g. data type name) #4051

Description

@roji

On the replication RelationMessage's columns, we currently expose DataTypeId, which is a type OID. This is difficult for users to use, e.g. if they want to write the column's contents back to another PG instance (see #4046). Similar for TypeMessage and possibly others.

We should simply expose the PostgresType for the OID, and probably obsolete DataTypeId (PostgresType exposes the OID if it's really needed). This would allow users to get the type's name, e.g. to set it on NpgsqlParameter.DataTypeName.

Activity

  1. added this to the 6.0.0 milestone on Oct 18, 2021
  2. changed the title [-]Expose PostgresType on replication RelationMessage.Column[/-] [+]Expose PostgresType instead of type OIDs in replication[/+] on Oct 18, 2021
  3. self-assigned this
    on Oct 18, 2021
  4. changed the title [-]Expose PostgresType instead of type OIDs in replication[/-] [+]Replication: better access to value metadata (e.g. data type name)Expose PostgresType instead of type OIDs in replication[/+] on Oct 25, 2021
  5. changed the title [-]Replication: better access to value metadata (e.g. data type name)Expose PostgresType instead of type OIDs in replication[/-] [+]Replication: better access to value metadata (e.g. data type name)[/+] on Oct 25, 2021
  6. added a commit that references this issue on Nov 7, 2021
    287cf13
  7. 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

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions