Is there any unique identifier for PostgreSQL? How can the master identify its slave unqiuely?
The master does not "find" the replicas.  The replicas find the master.

The master identifies the replicas by either their slot_name, or their application_name, or not at all, depending on the context.

What are you trying to do?