pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gustavsson Mikael <mikael.gustavsson@smhi.se>
Cc: pgsql-bugs@lists.postgresql.org, Svensson Peter <peter.svensson@smhi.se>
Cc: Almen Anders <anders.almen@smhi.se>
Subject: Re: SV: Problem with pg_notify / listen
Date: Fri, 27 Nov 2020 20:10:01 -0800
Message-ID: <20201128041001.GB556656@rfd.leadboat.com> (raw)
In-Reply-To: <744927.1606536220@sss.pgh.pa.us>
References: <1b8561412e8a4f038d7a491c8b922788@smhi.se>
	<704331.1606490493@sss.pgh.pa.us>
	<6c10dcdd2eb64bbab4814e4f2abd5ab4@smhi.se>
	<7a0df07fb3f94dfe80839942ab5993c7@smhi.se>
	<716909.1606498665@sss.pgh.pa.us>
	<730247.1606515208@sss.pgh.pa.us>
	<20201128035906.GA556656@rfd.leadboat.com>
	<744927.1606536220@sss.pgh.pa.us>

On Fri, Nov 27, 2020 at 11:03:40PM -0500, Tom Lane wrote:
> Noah Misch <noah@leadboat.com> writes:
> > I think we don't yet have the right name here, seeing QUEUE_TAIL_PAGE !=
> > QUEUE_POS_PAGE(QUEUE_TAIL) sounds paradoxical, yet happens regularly.  How
> > about naming it QUEUE_STOP_PAGE?
> 
> Hmm, it's not very clear what "stop" means here.  What do you think of
> QUEUE_OLDEST_PAGE?

"STOP" would mean the same kind of thing it means in xidStopLimit,
multiStopLimit and offsetStopLimit.  Interpreted for pg_notify specifically,
it would mean "if queueing a notification would require use of this page,
throw an error."

QUEUE_OLDEST_PAGE is fine.  I like it a little less than QUEUE_STOP_PAGE,
because oldestClogXid is a logical tail, and QUEUE_OLDEST_PAGE would be a
physical tail.





view thread (13+ messages)  latest in thread

Message-ID: <20201128041001.GB556656@rfd.leadboat.com>
Permalink:  ../20201128041001.GB556656@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20201128041001.GB556656@rfd.leadboat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noah@leadboat.com, tgl@sss.pgh.pa.us, mikael.gustavsson@smhi.se, peter.svensson@smhi.se, anders.almen@smhi.se
  Subject: Re: Problem with pg_notify / listen
  In-Reply-To: <20201128041001.GB556656@rfd.leadboat.com>
  References: <1b8561412e8a4f038d7a491c8b922788@smhi.se> <704331.1606490493@sss.pgh.pa.us> <6c10dcdd2eb64bbab4814e4f2abd5ab4@smhi.se> <7a0df07fb3f94dfe80839942ab5993c7@smhi.se> <716909.1606498665@sss.pgh.pa.us> <730247.1606515208@sss.pgh.pa.us> <20201128035906.GA556656@rfd.leadboat.com> <744927.1606536220@sss.pgh.pa.us> <20201128041001.GB556656@rfd.leadboat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox