Hello
> Is there a need for this function for the user?
This was feature request from user. I got such comment:
This function is useful when working with pg_stat_statements. For obtaining a databаse name for particular query you
needto join pg_database relation, but for obtaining an username you just need pg_get_userbyid(). So it will be useful
notto join extra relation and get a database name using the similar function - pg_get_databasebyid().
regards, Sergei