After a fresh install of postgreSQL15, it seems as if it installed correctly, because I can access the server through psql just fine.
But, when I attempt to access it through pgAdmin4, it does not automatically detect the server.
Because of this, I attempted to manually add the server through the "Register - Server" dialog box, but then I was prompted with this error: "Instance <Server at 0x2998c4c0af0> is not persisted".
I have tried to fully uninstall and reinstall both the entirety of postgreSQL15 as well as just pgAdmin4, without any luck. I've tried to keep my settings to default to hopefully eliminate any issues, but it hasn't worked thus far.
I'm running this system on windows 10, not inside a docker container, just installed in the program files folder on my PC.
My main question is how to make my server "persist" so I can get some databases up and running.
I had the same issue. I tried removing the data in the C:\Users\%USER%\AppData\Local\pgadmin folder, and received the same error upon reinstalling.
I deleted the pgadmin folder within the C:\Users\%USER%\AppData\Roaming folder, and deleted the pgadmin folder in C:\Users\%USER%\AppData\Local. This fixes the problem for most users, however in some cases a re-installation may be needed as well.