Re: not fully correct error message
От
Andreas Karlsson
Тема
Re: not fully correct error message
Дата
Msg-id
9737c5d9-a388-4c1c-a5b5-9938b61a5bb8@proxel.se
Ответ на
Re: not fully correct error message (Pavel Stehule)
Список
Дерево обсуждения
not fully correct error message Pavel Stehule <pavel.stehule@gmail.com>
Re: not fully correct error message jian he <jian.universality@gmail.com>
Re: not fully correct error message Pavel Stehule <pavel.stehule@gmail.com>
Re: not fully correct error message Andreas Karlsson <andreas@proxel.se>
Re: not fully correct error message Marcos Pegoraro <marcos@f10.com.br>
Re: not fully correct error message Andreas Karlsson <andreas@proxel.se>
Re: not fully correct error message Tom Lane <tgl@sss.pgh.pa.us>
Re: not fully correct error message Andreas Karlsson <andreas@proxel.se>
Re: not fully correct error message Tom Lane <tgl@sss.pgh.pa.us>
Re: not fully correct error message Andreas Karlsson <andreas@proxel.se>
Re: not fully correct error message Tom Lane <tgl@sss.pgh.pa.us>
Re: not fully correct error message Pavel Stehule <pavel.stehule@gmail.com>
On 1/3/26 7:34 AM, Pavel Stehule wrote: > here is a patch (with small regress test) Looks like a good change to me since the obvious question many people would ask themselves after seeing this error is if running it in a procedure would work instead and it does not. And this error message changes saves those people time which is a great thing. Tried out this patch and it worked and, as expected, also improved the error for other commands like CREATE DATABASE and REINDEX CONCURRENTLY so when this is commit the commit message should make it clear this is not just about VACUUM. A small suggestion is to change the message from: "%s cannot be executed from a function or a procedure" to: "%s cannot be executed from a function or procedure" I am not a native speaker but I think the second flows better. Andreas
В списке pgsql-hackers по дате отправления
От: Jim Vanns
Дата: