From: Oliver Elphick <olly@lfix.co.uk>
To: Marvin <magosoft@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Current Computer Name
Date: Thu, 02 Oct 2003 22:54:57 +0100
Message-ID: <1065131697.4453.9.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <3F7C9CE3.00000E.03624@guaj215desa>
References: <1065130642.4461.6.camel@linda.lfix.co.uk>
<3F7C9CE3.00000E.03624@guaj215desa>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: olly@lfix.co.uk, magosoft@gmx.net
Subject: Re: Current Computer Name
In-Reply-To: <1065131697.4453.9.camel@linda.lfix.co.uk>
References: <1065130642.4461.6.camel@linda.lfix.co.uk> <3F7C9CE3.00000E.03624@guaj215desa> <1065131697.4453.9.camel@linda.lfix.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox