Re: Win32 version question - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Win32 version question
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB34101AE9F@Herge.rcsinc.local
Whole thread Raw
In response to Win32 version question  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Win32 version question  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Win32 version question  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-hackers
> In phpPgAdmin, I need to know if the backend supports tablespaces or
> not.  What is the most reliable way of detecting that the backend is
the
> win32 native version and hence does not support tablespaces?  Version
> string info?
>
> Or alternatively, what is the most direct way of detecting its
presence
> or absence, regardless of backend OS?

Check the uptime...if it's greater than 7 days, it's not win32 :).

Seriously, you can check the version() string.  If it's got mingw init,
it's win32 native.

Merlin


------------------------------------------------------------------------
----------------------------
----PostgreSQL 7.5devel on i686-pc-mingw32, compiled by GCC gcc.exe (GCC)
3.2.3 mingw special 20030504
-1)


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Win32 version question
Next
From: Tom Lane
Date:
Subject: Re: Compile Failue on win32 - pipe.c using ereport