Re: wrong relkind error messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: wrong relkind error messages
Дата
Msg-id 8ff66f7e-d31b-3691-da73-afe20e238f80@enterprisedb.com
обсуждение исходный текст
Ответ на Re: wrong relkind error messages  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 21.07.21 04:21, Michael Paquier wrote:
> On Tue, Jul 20, 2021 at 05:08:53PM +0200, Peter Eisentraut wrote:
>> While reviewing the logical decoding of sequences patch, I found a few more
>> places that could be updated in the new style introduced by this thread.
>> See attached patch.
> 
> Those changes look fine.  I am spotting one instance in
> init_sequence() that looks worth aligning with the others?

I think if you write "ALTER SEQUENCE foo", then "foo is not a sequence" 
would be an appropriate error message, so this doesn't need changing.

> Did you consider changing RangeVarCallbackForAlterRelation() or
> ExecGrant_Relation() when it came to this thread?  Just noticing that,
> while going through the code.

These might be worth another look, but I'd need to investigate more in 
what situations they happen.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Volk
Дата:
Сообщение: Followup Timestamp to timestamp with TZ conversion
Следующее
От: Nitin Jadhav
Дата:
Сообщение: Re: when the startup process doesn't (logging startup delays)