Re: Issue with past commit: Allow fractional input values for integer GUCs ...
От | Tom Lane |
---|---|
Тема | Re: Issue with past commit: Allow fractional input values for integer GUCs ... |
Дата | |
Msg-id | 2561826.1598278664@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Issue with past commit: Allow fractional input values for integer GUCs ... (Greg Nancarrow <gregn4422@gmail.com>) |
Ответы |
Re: Issue with past commit: Allow fractional input values for integer GUCs ...
|
Список | pgsql-hackers |
Greg Nancarrow <gregn4422@gmail.com> writes: > The changes made allow fractional input for some cases where I believe > it shouldn't be allowed (i.e. when the setting does not accept a > unit). > ... > (Is it intentional - or indeed useful - to allow such settings, for > integer options?) Given that the commit included a test case exercising exactly that, I'm not sure why you might think it was unintentional. IIRC, the reasoning was that we ought to hide whether any given GUC is int or float underneath, in anticipation of future changes like caf626b2c. Another argument is that in regular SQL, you can assign a fractional value to an integer column and the system will let you do it; so why not in SET? In any case, we already shipped that behavior in v12, so I don't think we can take it away now. People don't appreciate formerly valid settings suddenly not working any more. regards, tom lane
В списке pgsql-hackers по дате отправления: