Re: Bootstrap DATA is a pita - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Bootstrap DATA is a pita
Date
Msg-id 54F7114D.3020400@gmx.net
Whole thread Raw
In response to Re: Bootstrap DATA is a pita  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Bootstrap DATA is a pita  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Bootstrap DATA is a pita  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 3/3/15 9:49 PM, Robert Haas wrote:
>> 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,

I think lines are cheap.  Columns are much harder to deal with.

> and make it harder to compare entries by grepping out some common
> substring.

Could you give an example of the sort of thing you wish to do?




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: POLA violation with \c service=
Next
From: Greg Stark
Date:
Subject: Re: NULL-pointer check and incorrect comment for pstate in addRangeTableEntry