Skip to content

Correct response message to client #35

@AmoebaProtozoa

Description

@AmoebaProtozoa

Development Task

Description

Before Postgres sends data result back to client, it will first give description about the data it’s returning, aka Row description. After sending the data row, it will send a command completion along with a tag tells user how many rows has been modified.
Currently, both our row description and data row information are incomplete/ incorrect. This issue address that.

Which Module

Server

Task List

  • Column Index in row description message
  • Column Length in row description message
  • Type Modifier in row description message
  • Tag in command completion message
  • Add Unit Test in conn_test for all the fields above

Reference

Below are our current response message when running simple select statement on TiDB for PG
F8BE0240-8335-41C7-81FB-62AF0F21666F
Here are the expected message captured from Postgres 12
7B1FAEC5-0D96-44D0-A9FA-F2BDA6FCB717

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions