Re: Do we need use more meaningful variables to replace 0 in catalog head files? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Do we need use more meaningful variables to replace 0 in catalog head files?
Date
Msg-id b76d153a-33d7-7827-746c-1109f7bf529d@dunslane.net
Whole thread Raw
In response to Re: Do we need use more meaningful variables to replace 0 in catalog head files?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Do we need use more meaningful variables to replace 0 in catalog head files?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers

On 11/11/2016 11:10 AM, Tom Lane wrote:
> boolin: OID=1242 proname=boolin proargtypes="cstring" prorettype=bool
> boolin: prosrc=boolin provolatile=i proparallel=s
>
>


I have written a little perl script to turn the pg_proc DATA lines into
something like the format suggested. In order to keep the space used as
small as possible, I used a prefix based on the OID. See attached result.

Still plenty of work to go, e.g. grabbing the DESCR lines, and turning
this all back into DATA/DESCR lines, but I wanted to get this out there
before going much further.

The defaults I used are below (commented out keys are not defaulted,
they are just there for completeness).

    my %defaults = (
    #                oid =>
    #                name =>
                     namespace => 'PGNSP',
                     owner => 'PGUID',
                     lang => '12',
                     cost => '1',
                     rows => '0',
                     variadic => '0',
                     transform => '0',
                     isagg => 'f',
                     iswindow => 'f',
                     secdef => 'f',
                     leakproof => 'f',
                     isstrict => 'f',
                     retset => 'f',
                     volatile => 'v',
                     parallel => 'u',
    #                nargs =>
                     nargdefaults => '0',
    #                rettype =>
    #                argtypes =>
                     allargtypes => '_null_',
                     argmodes => '_null_',
                     argnames => '_null_',
                     argdefaults => '_null_',
                     trftypes => '_null_',
    #                src =>
                     bin => '_null_',
                     config => '_null_',
                     acl => '_null_',
    );


cheers

andrew


Attachment

pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Remove the comment on the countereffectiveness of large shared_buffers on Windows
Next
From: Tomas Vondra
Date:
Subject: xlogreader.c fails with FATAL on a cluster with 4kB block size