title: Is there way to get PostgreSQL service name?
body: <p>Is there way to get PostgreSQL service name?</p>
  
  <p>I mean something like <code>SELECT @@SERVICENAME</code> as in MS SQL Server. Or maybe it is declared in one of config files?</p>
  
  <p>It's called Service ID:
  <img src="https://i.stack.imgur.com/ElzuK.png" alt="enter image description here"></p>