Re: Do we need use more meaningful variables to replace 0 in catalog head files?

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: Do we need use more meaningful variables to replace 0 in catalog head files?
Дата
Msg-id
CAM-w4HNoii4AT5_XJAJHKudsXfod+AuPR_hXnPt-6K+-wk4Hvw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Do we need use more meaningful variables to replace 0 in catalog head files? Hao Lee <mixtrue@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Michael Paquier <michael.paquier@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Robert Haas <robertmhaas@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Michael Paquier <michael.paquier@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Amit Langote <amitlangote09@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Corey Huinker <corey.huinker@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Corey Huinker <corey.huinker@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Jan de Visser <jan@de-visser.net>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Magnus Hagander <magnus@hagander.net>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andrew Dunstan <andrew@dunslane.net>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andres Freund <andres@anarazel.de>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andres Freund <andres@anarazel.de>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Do we need use more meaningful variables to replace 0in catalog head files? Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andrew Dunstan <andrew@dunslane.net>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andres Freund <andres@anarazel.de>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andrew Dunstan <andrew@dunslane.net>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andres Freund <andres@anarazel.de>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Andrew Dunstan <andrew@dunslane.net>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Robert Haas <robertmhaas@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Greg Stark <stark@mit.edu>
Re: Re: Do we need use more meaningful variables to replace 0 in catalog head files? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Hao Lee <mixtrue@gmail.com>
Re: Do we need use more meaningful variables to replace 0 in catalog head files? Craig Ringer <craig@2ndquadrant.com>
On Tue, Nov 15, 2016 at 4:50 PM, Robert Haas  wrote:
> On Sun, Nov 13, 2016 at 9:48 AM, Andrew Dunstan  wrote:
>> I'm not convinced the line prefix part is necessary, though. What I'm
>> thinking of is something like this:
>>
>> PROCDATA( oid=1242 name=boolin isstrict=t volatile=i parallel=s nargs=1
>>     rettype=bool argtypes="cstring" src=boolin );
>
> I liked Tom's format a lot better.  If we put this in a separate file
> rather than in the header, which I favor, the PROCDATA stuff is just
> noise.  On the other hand, having the name as the first thing on the
> line seems *excellent* for readability.


Just throwing this out there....

It would be neat if the file format was precisely a tab or comma
separated file suitable for loading into the appropriate table with
COPY or loading into a spreadsheet. Then we might be able to maintain
it by editing the table using SQL updates and/or other tools without
having to teach them a particular input format.

The trick would then be to have a preprocessing step in the build
which loaded the CSV/TSV files into hash tables and replaced all the
strings or other tokens with OIDs and magic values.


-- 
greg


В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Tom Lane
Дата:
FAQ