On Sat, Feb 21, 2015 at 11:34 AM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Andres Freund <and...@2ndquadrant.com> writes: >> On 2015-02-20 22:19:54 -0500, Peter Eisentraut wrote: >>> On 2/20/15 8:46 PM, Josh Berkus wrote: >>>> Or what about just doing CSV? > >>> I don't think that would actually address the problems. It would just >>> be the same format as now with different delimiters. > >> Yea, we need hierarchies and named keys. > > Yeah. One thought though is that I don't think we need the "data" layer > in your proposal; that is, I'd flatten the representation to something > more like > > { > oid => 2249, > oiddefine => 'CSTRINGOID', > typname => 'cstring', > typlen => -2, > typbyval => 1, > ... > }
Even this promises to vastly increase the number of lines in the file, and make it harder to compare entries by grepping out some common substring. I agree that the current format is a pain in the tail, but pg_proc.h is >5k lines already. I don't want it to be 100k lines instead. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers