Re: automatic system info tool?

From: Steve Atkins <steve(at)blighty(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: automatic system info tool?
Date: 2006-07-17 20:26:03
Message-ID: B0B69CE9-CE25-4F8A-B929-923C20557A4E@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Jul 17, 2006, at 12:57 PM, Martijn van Oosterhout wrote:

> On Mon, Jul 17, 2006 at 11:06:50AM -0400, Bort, Paul wrote:
>> If you can open a command shell you can get the OS version with the
>> 'ver' command under Windows:
>>
>> C:\>ver
>>
>> Microsoft Windows XP [Version 5.1.2600]
>
> How do you do this from a program though. Under UNIX uname() is a
> function call as well as a program. It returns the os name, version,
> hostname and system type.
>

GetVersionEx() will get you the windows version, service pack, etc IIRC.

Cheers,
Steve

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Reich 2006-07-17 20:33:26 Re: Proposed patch for contrib/cube
Previous Message Martijn van Oosterhout 2006-07-17 20:01:22 Re: plPHP and plRuby