Re: Win32 version question

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Win32 version question
Date: 2004-06-30 21:11:27
Message-ID: 1088629887.30981.269.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2004-06-30 at 11:16, Merlin Moncure wrote:
> > 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.
>

Does the win32 build have a pg_tablespace table? are there any rows in
it?

Was thinking the combination of the two queries would be able to
determine table space support in some fashion:

select * from pg_class where relnamespace = (select oid from
pg_namespace where nspname = 'pg_catalog') and relname =
'pg_tablespace';

select count(*) from pg_tablespace ;

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2004-06-30 22:06:07 Re: Win32 version question
Previous Message Tom Lane 2004-06-30 19:27:15 Re: PITR Error Message assistance