The following bug has been logged on the website:
Bug reference: 18779
Logged by: Daniel Elishakov
Email address: dan-eli(at)mail(dot)ru
PostgreSQL version: 16.6
Operating system: Debian GNU/Linux 12 (bookworm)
Description:
This bug takes place in Debian-based operating systems. To replicate this
bug please do following:
1) Install and initialize PostgreSQL dbms
2) Switch user to root (sudo -i)
3) Switch user to postgres
4) run command psql -U postgres -h localhost (may run multiple times to see
the bug)
Looks like this bug occurs because root user has ENV variable KRB5CCNAME,
while postgres does not. Please try to check it in other PostgreSQL versions
and other Debian linuxes.