| From: | "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> |
|---|---|
| To: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
| Cc: | "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Win32 version question |
| Date: | 2004-06-30 15:16:15 |
| Message-ID: | 6EE64EF3AB31D5448D0007DD34EEB34101AE9F@Herge.rcsinc.local |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Doug Quale | 2004-06-30 15:32:06 | Re: grant execute on many functions |
| Previous Message | Tom Lane | 2004-06-30 15:13:03 | Re: ODBC Developers |