From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Stefan Keller <sfkeller(at)gmail(dot)com> |
Cc: | Christoph Berg <myon(at)debian(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Joe Conway <mail(at)joeconway(dot)com> |
Subject: | Re: psql JSON output format |
Date: | 2024-01-23 15:39:18 |
Message-ID: | 97a2c51cb4b7b5ee6729a436f940444c0f563b7c.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 2024-01-23 at 08:01 -0700, David G. Johnston wrote:
> I do think that the output should include a metadata section that lists all of
> the actual columns in the result, the column position, and since we have the
> info available, the data type name and possibly OID. Then any column name
> present in the metadata but that isn't a key name for a given object is known
> to have an SQL NULL as the value of that column in that row.
Sounds attractive, but I'm a bit worried that that additional information
might make life harder for some consumers.
My crystal ball is as cloudy as anybody's when it comes to guessing the
most likely use cases for the feature, but I'd rather keep it simple and add
features like that later, if there is a demand.
If you import the data into an existing structure, you don't need the metadata.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Christoph Berg | 2024-01-23 15:51:35 | Re: psql JSON output format |
Previous Message | Christoph Berg | 2024-01-23 15:36:58 | Re: psql JSON output format |