pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Current Computer Name
2+ messages / 2 participants
[nested] [flat]

* Current Computer Name
@ 2003-10-02 17:22 Marvin Gonzalez <magosoft@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Marvin Gonzalez @ 2003-10-02 17:22 UTC (permalink / raw)
  To: pgsql-admin

Hi,
I would like to know how could 
I do to get the host name from postgres.
 
Something like "CURRENT_HOSTNAME".
 
Thanx,
 
 
MAGO 
   
 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Current Computer Name
@ 2003-10-02 21:54 Oliver Elphick <olly@lfix.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Elphick @ 2003-10-02 21:54 UTC (permalink / raw)
  To: Marvin <magosoft@gmx.net>; +Cc: pgsql-admin

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 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-10-02 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-02 17:22 Current Computer Name Marvin Gonzalez <magosoft@gmx.net>
2003-10-02 21:54 Re: Current Computer Name Oliver Elphick <olly@lfix.co.uk>

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