Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 785AD12DEACC for ; Mon, 23 Apr 2012 11:29:12 -0300 (ADT) Received: from [76.14.161.106] (helo=newserver.jfcomputer.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SMKGM-0004I7-VE for pgsql-sql@postgresql.org; Mon, 23 Apr 2012 14:29:11 +0000 Received: from localhost (unknown [127.0.0.1]) by newserver.jfcomputer.com (Postfix) with ESMTP id 1BA4C12215 for ; Mon, 23 Apr 2012 14:28:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at site Received: from newserver.jfcomputer.com ([127.0.0.1]) by localhost (linux-jfp8.site [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MkmH5ymjQ2e7 for ; Mon, 23 Apr 2012 07:28:56 -0700 (PDT) Received: from linux-12.localnet (unknown [192.168.1.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johnf@jfcomputer.com) by newserver.jfcomputer.com (Postfix) with ESMTPSA id 8482710F5E for ; Mon, 23 Apr 2012 07:28:56 -0700 (PDT) From: John Fabiani To: pgsql-sql@postgresql.org Subject: getting the OS user name Date: Mon, 23 Apr 2012 07:28:56 -0700 Message-ID: <4654350.cBryTEqMC6@linux-12> User-Agent: KMail/4.7.2 (Linux/3.1.9-1.4-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Host-Lookup-Failed: Reverse DNS lookup failed for 76.14.161.106 (failed) X-Pg-Spam-Score: 1.6 (+) X-Archive-Number: 201204/44 X-Sequence-Number: 36521 Hi, In my app it is possible to login as one name and use a different name to login to postgres. Is it possible to get the actual OS login name using plsql. Johnf