Conversation
|
I would expect In general it's unclear to me what problem or use case this solves? |
|
The reality is that multi-dimensional arrays are very underutilized in the real world and while correct that approach leads to serialization issues for the most common scenario. Which is how I found our DIY orm-like layer was sometimes wrapping already-wrapped arrays. No matter if this change is accepted or not, the docs should be updated to reflect the decision to support multi-dimensional arrays or to flatten. |
Well maybe, but it seems rather inappropriate to start making opinionated decisions about that in a PostgreSQL driver – that should support whatever PostgreSQL supports, no? |
pq.Arrayshouldn't wrap values that are already an optimal pq Array type.Repro: