Re: How to tell what OS PostgreSQL is installed on.

From: Michael van Elst <mlelstv(at)serpens(dot)de>
To: Louis Lam <louis(dot)lam(at)guardium(dot)com>
Cc: Scott Whitney <swhitney(at)journyx(dot)com>, Julio Leyva <jcleyva(at)hotmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to tell what OS PostgreSQL is installed on.
Date: 2009-10-09 05:04:42
Message-ID: 20091009050442.GA21142@serpens.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Oct 08, 2009 at 05:31:50PM -0400, Louis Lam wrote:
> Hi Scott,
>
> Thanks for the info. I did tried
>
> select pg_show_all_settings()
>
> But this function has a filter based on a user privilege. As postgres
> user, I got 187 rows return and can see parameter like data_directory with
> its OS path. But as a non admin user, I got 176 rows return and all the
> parameters that would point to a directory on the OS are not shown due to
> privilege.

I'm wondering what you want to do with this information. For a user
there should not be a difference regarding the underlying operating
system on the server. And for an admin who might want to do statistics
on a larger set of database servers you should have enough privileges.

If you need some classification of all the databases then you could just
store that information in the database. E.g. with a stored procedure
that gives you the correct answer.

Greetings,
--
Michael van Elst
Internet: mlelstv(at)serpens(dot)de
"A potential Snark may lurk in every tree."

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message rahimeh khodadadi 2009-10-10 08:27:45 Postgre compiling error
Previous Message u235sentinel 2009-10-09 01:57:48 Re: postgres 8.3.8 and Solaris 10 problems?