In Microsoft SQL Server, there are scripts you have to run when changing the name of the computer hosting the SQL database services. With PostgreSQL you don’t have to run scripts to change the computer name. With PostgreSQL, you simply change the computer name and it keeps working.
There are however, some things that might be specific to your environment that you need to do when changing the computer name of a PostgreSQL server. These might include configuration files of services that connect to the PostgreSQL server, for example.