Re: how to get unique identifier for a client

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: gorsa <gorsa(dot)1972(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to get unique identifier for a client
Date: 2008-10-15 00:31:36
Message-ID: dcc563d10810141731n2ed7efc0sf31ca5b9f21d9761@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 10, 2008 at 3:38 AM, gorsa <gorsa(dot)1972(at)gmail(dot)com> wrote:
> hi all
> is there a way to get a unique identifier for a client? something like
> a machine id. session_user does not seem to work since a user can log
> on to many workstations. been through the list so i'm not searching
> for getting the ip address since the list said something like it's not
> supported in unix-sockets, though i'll take it since i'm using
> postgres in windows environment. thanks in advance :)

Does this unique identifier need to be something with permanence from
one connection to the next? If not, then select * from
pg_stat_activity should have uniquely identifying information in it.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-10-15 00:47:22 Re: Column level triggers
Previous Message Scott Marlowe 2008-10-15 00:21:06 Re: Drupal and PostgreSQL - performance issues?