You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Extend \dt psql command output with shard metadata (#709)
Intercept \dt command, and add a `Shard`
column to the output.
Add a flag to `Route` that indicates if
\dt is being executed so the Shard column
is conditionally applied. Add `shard_map`
HashMap to `Route` as well that stores
tables with their corresponding shard.
Introduce `forward_with_shard` function in
backend/pool/connection/binding.rs that
exposes the shard_map property to be
streamed in the query engine.
Add engine logic to populate the new
column correctly and handle tables sharded
across multiple databases
Ex. output:
List of tables
Schema | Name | Type | Owner | Shard
--------+-----------+-------+--------+---------
public | only_on_0 | table | ubuntu | 0
public | only_on_1 | table | ubuntu | 1
public | only_on_2 | table | ubuntu | 2
public | users | table | ubuntu | 0, 1, 2
Signed-off-by: Aditya Gollamudi <adigollamudi@gmail.com>
0 commit comments