pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org, Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Subject: Re: pgsql: Allow users to limit storage reserved by replication slots
Date: Tue, 07 Apr 2020 22:58:55 -0400
Message-ID: <7878.1586314735@sss.pgh.pa.us> (raw)
In-Reply-To: <20200407232602.GA21559@alvherre.pgsql>
References: <20200407232602.GA21559@alvherre.pgsql>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> However, even with that change, we're still testing that a checkpoint is
> 216 bytes ... in other words, whenever someone changes the definition of
> struct CheckPoint, this test will fail.  That seems unnecessary and
> unfriendly.  I'm not sure how to improve that without also removing that
> column.

I read florican's results as showing that sizeof(CheckPoint) is already
different on 32-bit machines than 64-bit; it's repeatably getting this:

#   Failed test 'check that the slot state changes to "reserved"'
#   at t/019_replslot_limit.pl line 125.
#          got: '0/15000C0|reserved|192 bytes'
#     expected: '0/15000C0|reserved|216 bytes'

This test case was *not* well thought out.

			regards, tom lane





view thread (6+ messages)

Message-ID: <7878.1586314735@sss.pgh.pa.us>
Permalink:  ../7878.1586314735@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7878.1586314735@sss.pgh.pa.us

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, horikyota.ntt@gmail.com
  Subject: Re: pgsql: Allow users to limit storage reserved by replication slots
  In-Reply-To: <7878.1586314735@sss.pgh.pa.us>
  References: <20200407232602.GA21559@alvherre.pgsql> <7878.1586314735@sss.pgh.pa.us>

* 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