Re: Improve error messages for database object stats manipulation functions during recovery

Maxim Orlov <orlovmg@gmail.com>

From: Maxim Orlov <orlovmg@gmail.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>, pgsql-hackers@lists.postgresql.org
Date: 2024-11-15T11:59:00Z
Lists: pgsql-hackers
+1 for the patch.

Recently, one of our customer have tried to upgrade the replica, and,
obviously, failed. I don't remember the exact error message, but for him it
was not so clear that server is in recovery. Explicitly declaring error is
the way to go in my view.

So, I consider this patch useful. Overall, looks good to me.

-- 
Best regards,
Maxim Orlov.

Commits

  1. Improve error message for database object stats manipulation functions.