From: | Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | Postgres Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Function and view to retrieve WAL receiver status |
Date: | 2015-12-14 20:27:47 |
Message-ID: | CABwTF4XVB0+QPWDxxuFF3Fi=6TRBF+XUiqmSa7LT-qUF6EZhMw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Dec 13, 2015 at 10:15 PM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com
> wrote:
> On Mon, Dec 14, 2015 at 3:09 PM, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
> wrote:
> > On Dec 13, 2015 9:56 PM, "Michael Paquier" <michael(dot)paquier(at)gmail(dot)com>
> > wrote:
> >> If the node has no WAL receiver active, a tuple with NULL values is
> >> returned instead.
> >
> > IMO, in the absence of a WAL receiver the SRF (and the view) should not
> > return any rows.
>
> The whole point is to not use a SRF in this case: there is always at
> most one WAL receiver.
>
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.
--
Gurjeet Singh http://gurjeet.singh.im/
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2015-12-14 20:37:07 | Re: fix for readline terminal size problems when window is resized with open pager |
Previous Message | Tomas Vondra | 2015-12-14 20:04:24 | PATCH: postpone building buckets to the end of Hash (in HashJoin) |