X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B5622D1B4F0 for ; Thu, 2 Oct 2003 21:55:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 88424-06 for ; Thu, 2 Oct 2003 18:55:04 -0300 (ADT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id A4DA3D1B520 for ; Thu, 2 Oct 2003 18:55:01 -0300 (ADT) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 1A5BPb-0003GE-0W; Thu, 02 Oct 2003 22:55:03 +0100 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.22) id 1A5BPV-0003Yu-82; Thu, 02 Oct 2003 22:54:57 +0100 Subject: Re: Current Computer Name From: Oliver Elphick To: Marvin Cc: pgsql-admin@postgresql.org In-Reply-To: <3F7C9CE3.00000E.03624@guaj215desa> References: <1065130642.4461.6.camel@linda.lfix.co.uk> <3F7C9CE3.00000E.03624@guaj215desa> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1065131697.4453.9.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 02 Oct 2003 22:54:57 +0100 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/30 X-Sequence-Number: 10591 On Thu, 2003-10-02 at 22:47, Marvin wrote: > Because I would like to store in my table the name of the computer > where the user saves the information. > > Whe have already into a MSSQL table the following definition: > > Field name Type Default > IngUsername nvarchar(50) (suser_sname()) > IngDate datetime (getdate()) > IngPCName nvarchar(50) (host_name()) > > So, I need to emulate this in order to make > the migration transparent to the application. > > > Thank you for any suggestions. > > You could write a function in C or PL/Perl... -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Set your affection on things above, not on things on the earth." Colossians 3:2