pg-sharding/spqr

Small console messages

Closed this issue · 1 comments

Have a look

ADD SHARDING RULE r2 COLUMNS w_id FOR DATASPACE ds2;
                                    add sharding rule                                    
-----------------------------------------------------------------------------------------
 created sharding rule r2 for table (*) with columns [w_id, hash: x->x] in ds2 dataspace
(1 row)

Why are these response messages so long? Let's make it a bit smaller, something like

ADD SHARDING RULE r2 COLUMNS w_id FOR DATASPACE ds2;
                   add sharding rule r2                                   
------------------------------------------------------------
 table (*) with columns [w_id, hash: x->x] in ds2 dataspace
(1 row)

But to be honest, it's still hard to read. What do you think?

ADD SHARDING RULE r2 COLUMNS w_id FOR DATASPACE 
  NEW SHARDING RULE
---------------------------------
 rule id   -> r2
 table     -> (*)
 columns   -> [w_id, hash: x->x]
 dataspace -> ds2
(1 row)

Any ideas?

I prefer the second option, but instead of "ValueName -> value", use "ValueName: value"