Re: pg_system_identifier() - Mailing list pgsql-hackers

From Andres Freund
Subject Re: pg_system_identifier()
Date
Msg-id 20130826184546.GB5464@awork2.anarazel.de
Whole thread Raw
In response to Re: pg_system_identifier()  (Josh Berkus <josh@agliodbs.com>)
Responses Re: pg_system_identifier()  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Re: pg_system_identifier()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On 2013-08-26 10:10:54 -0700, Josh Berkus wrote:
> I think we've gotten a bit off the track of the proposed patch, which is
> designed to report the system_identifier string currently in
> pg_controldata, nothing more.

Agreed.

> I'm going to reverse my vote, and vote against this patch.  The reason
> why is that I think we should instead have a function:
> 
> pg_controldata(parameter text)
> 
> ... which would report *all* strings in pg_controldata.  Hence, you'd do
> instead:
> 
> pg_controldata('system identifier')
> 
> This will hopefully spare us from 15 patches incrementally adding all of
> the individual items in controldata.

If anything but the proposed feature, it should be an SRF - passing in
text parameters isn't very discoverable. And I can't imagine where an
SRF would have too high overhead.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [9.3 doc fix] clarification of Solaris versions
Next
From: Alvaro Herrera
Date:
Subject: Re: [9.3 doc fix] clarification of Solaris versions