Re: Function and view to retrieve WAL receiver status

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>, Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Function and view to retrieve WAL receiver status
Date: 2015-12-17 23:39:02
Message-ID: CA+TgmoYcq4NM5xwkv-ObDJQn-dhugd9GSxJA7ySBr=hUp9ifqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 14, 2015 at 7:23 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> On Tue, Dec 15, 2015 at 5:27 AM, Gurjeet Singh wrote:
>> The function, maybe. But emitting an all-nulls row from a view seems
>> counter-intuitive, at least when looking at it in context of relational
>> database.
>
> OK, noted. Any other opinions?

I wouldn't bother with the view. If we're going to do it, I'd say
just provide the function and let people SELECT * from it if they want
to.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-12-18 00:08:48 Re: extend pgbench expressions with functions
Previous Message Tom Lane 2015-12-17 21:56:48 Re: broken autocomplete in head