Re: exposing pg_controldata and pg_config as functions

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Joe Conway <mail(at)joeconway(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: exposing pg_controldata and pg_config as functions
Date: 2015-09-08 20:56:50
Message-ID: 55EF4B92.5060603@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09/08/2015 04:21 PM, Peter Eisentraut wrote:
> On 9/7/15 7:32 PM, Alvaro Herrera wrote:
>> Andrew Dunstan wrote:
>>
>>> I already gave a use case that you dismissed in favour of a vague solution
>>> that we don't actually have. You seem to be the only person objecting to
>>> this proposal.
>> I think that use case would be better served by a completely different
>> interface -- some way to query the server, "does this installation
>> support feature X?" What you proposed, using a regexp to look for
>> --enable-xml in the pg_config --configure output, doesn't look all that
>> nice to me.
> Agreed.
>
>

The problem is that at least this user's system had something odd about
it. so that I wouldn't entirely trust the output of

select is_supported
from information_schema.sql_features
where feature_name = 'XML type';

to reflect the config.

I also have cases where clients don't want to give me superuser access,
and sometimes not even shell access, and it could well be useful to me
to be able to say to them "OK, you need to make sure that this file in
this location has this entry".

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2015-09-08 20:58:59 Re: [patch] Proposal for \rotate in psql
Previous Message Daniel Verite 2015-09-08 20:55:44 Re: [patch] Proposal for \rotate in psql