From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Arthur Zakirov <a(dot)zakirov(at)postgrespro(dot)ru>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgres hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_get_functiondef forgets about most GUC_LIST_INPUT GUCs |
Date: | 2018-03-06 06:14:00 |
Message-ID: | CAFj8pRB7u-D1NA8a22dytwicKv4RWrYqKCF=yiL5kKMKbssPSw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2018-03-06 2:32 GMT+01:00 Michael Paquier <michael(at)paquier(dot)xyz>:
> On Mon, Mar 05, 2018 at 09:25:09PM +0100, Pavel Stehule wrote:
> > I afraid so there is not good solution. Is possible to store options in
> > original form? When the function will be displayed, then the original
> value
> > will be displayed. The current patch (with known extensions) can be used
> as
> > bug fix and back patched. In new version we store original value with
> > quotes.
>
> You mean storing the values in pg_proc.proconfig at the creation time of
> the function? That would basically work, except for the case of a
> function using a parameter which is not from the same PL. The function
> creation would fail because it cannot find the parameter it is looking
> for as we need to look at loaded parameters to know it uses a list or
> not :(
>
yes. It can fails on execution time, but it is something like runtime error.
just dump should to produce same form like was input. So if on input we got
quotes, then we should to use quotes on output. Without querying somewhere.
The possible quotes can be removed in function compile time.
Pavel
> --
> Michael
>
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2018-03-06 06:28:21 | Re: inserts into partitioned table may cause crash |
Previous Message | Amit Kapila | 2018-03-06 05:56:06 | Re: [HACKERS] GSoC 2017: weekly progress reports (week 4) and patch for hash index |