agora inbox for [email protected]
help / color / mirror / Atom feedFunctions with COPY
982+ messages / 6 participants
[nested] [flat]
* Functions with COPY
@ 2003-11-27 14:15 Stephen Frost <[email protected]>
0 siblings, 2 replies; 982+ messages in thread
From: Stephen Frost @ 2003-11-27 14:15 UTC (permalink / raw)
To: pgsql-hackers
Hi,
Consider the following input data:
1234,24.50,10-Jan-2003,10/1/03,10-01-2003,hiall
The interpretation for the numbers is:
1234 = 12.34, 24.50 = 24.50
The interpretation for the dates is:
January 10th, 2003, October 1st, 2003, October 1st, 2003
I don't believe it's possible, currently, to correctly import this
data with copy. I'm not sure the date fields would even be accepted
as date fields. It'd be nice if this could be made to work. From a
user standpoint consider:
copy blah (
to_number(cost,'99V99'), -- I think that's right?
to_number(cost2,'99.99'),
to_date(install_date,'DD-Mon-YYYY'),
to_date(invoice_date,'MM/DD/YY'),
to_date(bill_date,'MM-DD-YYYY'),
service_type) from stdin;
Perhaps the actual syntax would be different, but the idea is there,
be able to specify a function with arguments to handle the
conversion from the text to the resulting data type in the table.
Right now casting is done but that casting has to be expected to
work for all input formats for each data type cast and that just
isn't reasonable to try and force something to do. Instead, I
believe, the number of input formats accepted has been limited.
Now, that isn't an actual data set I have to deal with, but it's a
good illustration of the problem I've had with some of my data sets,
mainly with the date fields though there is one data set that has the
problem of having an implied decimal point.
Thanks,
Stephen
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 14:21 Bruno Wolff III <[email protected]>
parent: Stephen Frost <[email protected]>
1 sibling, 1 reply; 982+ messages in thread
From: Bruno Wolff III @ 2003-11-27 14:21 UTC (permalink / raw)
To: pgsql-hackers
On Thu, Nov 27, 2003 at 09:15:20 -0500,
Stephen Frost <[email protected]> wrote:
>
> I don't believe it's possible, currently, to correctly import this
> data with copy. I'm not sure the date fields would even be accepted
> as date fields. It'd be nice if this could be made to work. From a
> user standpoint consider:
You can write a filter program that reads the data and passes it off
to copy. Perl works pretty well for this.
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 14:28 Stephen Frost <[email protected]>
parent: Bruno Wolff III <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Stephen Frost @ 2003-11-27 14:28 UTC (permalink / raw)
To: pgsql-hackers
* Bruno Wolff III ([email protected]) wrote:
> On Thu, Nov 27, 2003 at 09:15:20 -0500,
> Stephen Frost <[email protected]> wrote:
> > I don't believe it's possible, currently, to correctly import this
> > data with copy. I'm not sure the date fields would even be accepted
> > as date fields. It'd be nice if this could be made to work. From a
> > user standpoint consider:
>
> You can write a filter program that reads the data and passes it off
> to copy. Perl works pretty well for this.
I already did, but it's basically a poor duplication of what the
Postgres functions listed already do. Not what I'd consider the best
scenario. Additionally, overall I'd expect it to be less work to have
the conversion from text->data type done once and correctly instead of
run through a filter program to 'clean it up' for Postgres and then also
run through functions in Postgres (casts at least) to convert it.
Stephen
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 14:38 Rod Taylor <[email protected]>
parent: Stephen Frost <[email protected]>
0 siblings, 2 replies; 982+ messages in thread
From: Rod Taylor @ 2003-11-27 14:38 UTC (permalink / raw)
To: Stephen Frost <[email protected]>; +Cc: pgsql-hackers
On Thu, 2003-11-27 at 09:28, Stephen Frost wrote:
> * Bruno Wolff III ([email protected]) wrote:
> > On Thu, Nov 27, 2003 at 09:15:20 -0500,
> > Stephen Frost <[email protected]> wrote:
> > > I don't believe it's possible, currently, to correctly import this
> > > data with copy. I'm not sure the date fields would even be accepted
> > > as date fields. It'd be nice if this could be made to work. From a
> > > user standpoint consider:
> >
> > You can write a filter program that reads the data and passes it off
> > to copy. Perl works pretty well for this.
>
> I already did, but it's basically a poor duplication of what the
> Postgres functions listed already do. Not what I'd consider the best
> scenario. Additionally, overall I'd expect it to be less work to have
> the conversion from text->data type done once and correctly instead of
> run through a filter program to 'clean it up' for Postgres and then also
> run through functions in Postgres (casts at least) to convert it.
How about COPY into a TEMP TABLE for 10k lines, then do an
insert into real_table .... select .... from temp_table;
which converts the data?
You could of course thread the load so 2 or 3 processes execute the data
import.
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 14:55 Dave Cramer <[email protected]>
parent: Rod Taylor <[email protected]>
1 sibling, 1 reply; 982+ messages in thread
From: Dave Cramer @ 2003-11-27 14:55 UTC (permalink / raw)
To: Rod Taylor <[email protected]>; +Cc: Stephen Frost <[email protected]>; pgsql-hackers
There is a patch floating around for informix load/unload
the syntax is load from 'file' insert into ...., and unload to 'file'
select "whatever you like"
Would this solve the problem?
Dave
On Thu, 2003-11-27 at 09:38, Rod Taylor wrote:
> On Thu, 2003-11-27 at 09:28, Stephen Frost wrote:
> > * Bruno Wolff III ([email protected]) wrote:
> > > On Thu, Nov 27, 2003 at 09:15:20 -0500,
> > > Stephen Frost <[email protected]> wrote:
> > > > I don't believe it's possible, currently, to correctly import this
> > > > data with copy. I'm not sure the date fields would even be accepted
> > > > as date fields. It'd be nice if this could be made to work. From a
> > > > user standpoint consider:
> > >
> > > You can write a filter program that reads the data and passes it off
> > > to copy. Perl works pretty well for this.
> >
> > I already did, but it's basically a poor duplication of what the
> > Postgres functions listed already do. Not what I'd consider the best
> > scenario. Additionally, overall I'd expect it to be less work to have
> > the conversion from text->data type done once and correctly instead of
> > run through a filter program to 'clean it up' for Postgres and then also
> > run through functions in Postgres (casts at least) to convert it.
>
> How about COPY into a TEMP TABLE for 10k lines, then do an
> insert into real_table .... select .... from temp_table;
> which converts the data?
>
> You could of course thread the load so 2 or 3 processes execute the data
> import.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
>
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 15:19 Stephen Frost <[email protected]>
parent: Rod Taylor <[email protected]>
1 sibling, 0 replies; 982+ messages in thread
From: Stephen Frost @ 2003-11-27 15:19 UTC (permalink / raw)
To: Rod Taylor <[email protected]>; +Cc: pgsql-hackers
* Rod Taylor ([email protected]) wrote:
> How about COPY into a TEMP TABLE for 10k lines, then do an
> insert into real_table .... select .... from temp_table;
> which converts the data?
>
> You could of course thread the load so 2 or 3 processes execute the data
> import.
Sure, this would work, but it's a heck of alot more work from a
processing standpoint than either of the other options...
Stephen
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 15:21 Stephen Frost <[email protected]>
parent: Dave Cramer <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Stephen Frost @ 2003-11-27 15:21 UTC (permalink / raw)
To: Dave Cramer <[email protected]>; +Cc: Rod Taylor <[email protected]>; pgsql-hackers
* Dave Cramer ([email protected]) wrote:
> There is a patch floating around for informix load/unload
>
> the syntax is load from 'file' insert into ...., and unload to 'file'
> select "whatever you like"
>
> Would this solve the problem?
I'm not sure. It depends on what you can do with the '....' after
'insert into'. If it's :
insert into blah (what here?) to_number(blah1,'99V99'),etc
Then I'd think it would work, but I don't know if that's what you're
saying or not.
Stephen
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-27 15:28 Dave Cramer <[email protected]>
parent: Stephen Frost <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Dave Cramer @ 2003-11-27 15:28 UTC (permalink / raw)
To: Stephen Frost <[email protected]>; +Cc: Rod Taylor <[email protected]>; pgsql-hackers; Gavin Sherry <[email protected]>
Stephen,
You can do whatever you can do with an insert now, so yes, I think that
is possible. Even if the current patch doesn't do that, it would
certainly be a start.
Dave
On Thu, 2003-11-27 at 10:21, Stephen Frost wrote:
> * Dave Cramer ([email protected]) wrote:
> > There is a patch floating around for informix load/unload
> >
> > the syntax is load from 'file' insert into ...., and unload to 'file'
> > select "whatever you like"
> >
> > Would this solve the problem?
>
> I'm not sure. It depends on what you can do with the '....' after
> 'insert into'. If it's :
> insert into blah (what here?) to_number(blah1,'99V99'),etc
>
> Then I'd think it would work, but I don't know if that's what you're
> saying or not.
>
> Stephen
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 16:55 Tom Lane <[email protected]>
parent: Stephen Frost <[email protected]>
1 sibling, 1 reply; 982+ messages in thread
From: Tom Lane @ 2003-11-28 16:55 UTC (permalink / raw)
To: Stephen Frost <[email protected]>; +Cc: pgsql-hackers
Stephen Frost <[email protected]> writes:
> Consider the following input data:
> 1234,24.50,10-Jan-2003,10/1/03,10-01-2003,hiall
> The interpretation for the numbers is:
> 1234 =3D 12.34, 24.50 =3D 24.50
> The interpretation for the dates is:
> January 10th, 2003, October 1st, 2003, October 1st, 2003
> I don't believe it's possible, currently, to correctly import this
> data with copy. I'm not sure the date fields would even be accepted
> as date fields.
Nonsense.
regression=# set datestyle to mdy;
SET
regression=# select '10-Jan-2003'::date;
date
------------
2003-01-10
(1 row)
regression=# select '10/1/03'::date;
date
------------
2003-10-01
(1 row)
regression=# select '10-01-2003'::date;
date
------------
2003-10-01
(1 row)
I think you'd have to do some preprocessing on the numeric inputs if you
wanted implied decimal points inserted like that, but the dates look fine.
regards, tom lane
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 17:07 Stephen Frost <[email protected]>
parent: Tom Lane <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Stephen Frost @ 2003-11-28 17:07 UTC (permalink / raw)
To: Tom Lane <[email protected]>; +Cc: pgsql-hackers
* Tom Lane ([email protected]) wrote:
> Stephen Frost <[email protected]> writes:
> > Consider the following input data:
> > 1234,24.50,10-Jan-2003,10/1/03,10-01-2003,hiall
>
> > The interpretation for the numbers is:
> > 1234 =3D 12.34, 24.50 =3D 24.50
> > The interpretation for the dates is:
> > January 10th, 2003, October 1st, 2003, October 1st, 2003
>
> > I don't believe it's possible, currently, to correctly import this
> > data with copy. I'm not sure the date fields would even be accepted
> > as date fields.
> Nonsense.
[...]
> I think you'd have to do some preprocessing on the numeric inputs if you
> wanted implied decimal points inserted like that, but the dates look fine.
I guess my example was lacking, I'm sure there are cases where the
text->date casting will end up being wrong or some date style won't be
accepted. If the above was 'January 10th, 2003, October 1st, 2003,
January 1st, 2003', for example. Thinking back I think that might have
been the situation I was thinking about (conflicting mdy and dmy) and
would have made more sense as an example.
Stephen
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 17:15 Tom Lane <[email protected]>
parent: Stephen Frost <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Tom Lane @ 2003-11-28 17:15 UTC (permalink / raw)
To: Stephen Frost <[email protected]>; +Cc: pgsql-hackers
Stephen Frost <[email protected]> writes:
> I guess my example was lacking, I'm sure there are cases where the
> text->date casting will end up being wrong or some date style won't be
> accepted. If the above was 'January 10th, 2003, October 1st, 2003,
> January 1st, 2003', for example. Thinking back I think that might have
> been the situation I was thinking about (conflicting mdy and dmy) and
> would have made more sense as an example.
Then what are you after, some magically prescient input mode that will
guess the correct interpretation?
regards, tom lane
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 17:30 Stephen Frost <[email protected]>
parent: Tom Lane <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Stephen Frost @ 2003-11-28 17:30 UTC (permalink / raw)
To: Tom Lane <[email protected]>; +Cc: pgsql-hackers
* Tom Lane ([email protected]) wrote:
> Stephen Frost <[email protected]> writes:
> > I guess my example was lacking, I'm sure there are cases where the
> > text->date casting will end up being wrong or some date style won't be
> > accepted. If the above was 'January 10th, 2003, October 1st, 2003,
> > January 1st, 2003', for example. Thinking back I think that might have
> > been the situation I was thinking about (conflicting mdy and dmy) and
> > would have made more sense as an example.
>
> Then what are you after, some magically prescient input mode that will
> guess the correct interpretation?
No, I'm interested, as I discussed in my message[1], in the ability to
use functions in a copy statement to allow me to specify the conversion
from text to the appropriate data type. Right now Postgres is using
casting which can end up being wrong. That's not a fault or something
that can be fixed, the casting logic itself is fine but it's not always
appropriate to apply the same casting to all fields of a given type.
It would be nice to be able to choose what function is used and to pass
arguments to it. This is a feature request and I'm not suggesting a
change in host the text->date casting is done. From a programmatical
standpoint I see things like this:
Right now:
text -> date : cast(text as date)
text -> numeric : cast(text as numeric)
I want to be able to pop that out and put my own function in place of
it, like so:
text -> date : to_date(text,'YYYY-Mon-DD')
text -> numeric : to_numeric(text,'99V99')
My other message had an example syntax to do this. I don't know if
that'd be the appropriate syntax or not but I thought it illustrated
what I was interested in.
Thanks,
Stephen
[1] http://archives.postgresql.org/pgsql-hackers/2003-11/msg01456.php
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 17:47 Tom Lane <[email protected]>
parent: Stephen Frost <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Tom Lane @ 2003-11-28 17:47 UTC (permalink / raw)
To: Stephen Frost <[email protected]>; +Cc: pgsql-hackers
Stephen Frost <[email protected]> writes:
> No, I'm interested, as I discussed in my message[1], in the ability to
> use functions in a copy statement to allow me to specify the conversion
> from text to the appropriate data type.
COPY is not intended to be that flexible; it's intended to be fast.
You can do any amount of processing you want in an INSERT statement,
though.
INSERT INTO mytable VALUES (mydatefunc('2001/01/03'), ... );
regards, tom lane
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 18:02 Stephen Frost <[email protected]>
parent: Tom Lane <[email protected]>
0 siblings, 1 reply; 982+ messages in thread
From: Stephen Frost @ 2003-11-28 18:02 UTC (permalink / raw)
To: Tom Lane <[email protected]>; +Cc: pgsql-hackers
* Tom Lane ([email protected]) wrote:
> Stephen Frost <[email protected]> writes:
> > No, I'm interested, as I discussed in my message[1], in the ability to
> > use functions in a copy statement to allow me to specify the conversion
> > from text to the appropriate data type.
>
> COPY is not intended to be that flexible; it's intended to be fast.
I wouldn't expect much of a speed difference between to_date() and
cast(text as date). Is there some reason I'm not seeing to expect it to
be much slower? My guess was that supporting this wouldn't involve
that much code change either but I'm probably wrong.
> You can do any amount of processing you want in an INSERT statement,
> though.
Certainly, but for bulk loads that requires more pre-processing work for
the user and I believe results in more work for the server too (it
certainly takes longer...).
Stephen
Attachments:
[application/pgp-signature] signature.asc (189B, ../../[email protected]/2-signature.asc)
download
^ permalink raw reply [nested|flat] 982+ messages in thread
* Re: Functions with COPY
@ 2003-11-28 18:37 Tom Lane <[email protected]>
parent: Stephen Frost <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Tom Lane @ 2003-11-28 18:37 UTC (permalink / raw)
To: Stephen Frost <[email protected]>; +Cc: pgsql-hackers
Stephen Frost <[email protected]> writes:
> * Tom Lane ([email protected]) wrote:
>> You can do any amount of processing you want in an INSERT statement,
>> though.
> Certainly, but for bulk loads that requires more pre-processing work for
> the user and I believe results in more work for the server too (it
> certainly takes longer...).
Have you batched multiple INSERTs into a transaction? Also consider
using a prepared statement to eliminate parse/plan overhead.
regards, tom lane
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
* [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid
@ 2026-03-12 15:09 Álvaro Herrera <[email protected]>
0 siblings, 0 replies; 982+ messages in thread
From: Álvaro Herrera @ 2026-03-12 15:09 UTC (permalink / raw)
---
src/backend/commands/cluster.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index af47354e382..29440fb75cd 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -2814,7 +2814,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* Whether we could read new record or not, keep checking if
* 'lsn_upto' was specified.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
{
SpinLockAcquire(&shared->mutex);
lsn_upto = shared->lsn_upto;
@@ -2822,7 +2822,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
done = shared->done;
SpinLockRelease(&shared->mutex);
}
- if (!XLogRecPtrIsInvalid(lsn_upto) &&
+ if (XLogRecPtrIsValid(lsn_upto) &&
ctx->reader->EndRecPtr >= lsn_upto)
break;
@@ -2846,7 +2846,7 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
* If lsn_upto is valid, WAL records having LSN lower than that
* should already have been flushed to disk.
*/
- if (XLogRecPtrIsInvalid(lsn_upto))
+ if (!XLogRecPtrIsValid(lsn_upto))
timeout = 100L;
res = WaitForLSN(WAIT_LSN_TYPE_PRIMARY_FLUSH,
ctx->reader->EndRecPtr + 1,
@@ -4039,7 +4039,7 @@ repack_worker_internal(dsm_segment *seg)
* anything in the shared memory until we have serialized the snapshot.
*/
SpinLockAcquire(&shared->mutex);
- Assert(XLogRecPtrIsInvalid(shared->lsn_upto));
+ Assert(!XLogRecPtrIsValid(shared->lsn_upto));
sfs = &shared->sfs;
SpinLockRelease(&shared->mutex);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename="0005-document-store_change-somewhat-more.nocfbot.txt"
^ permalink raw reply [nested|flat] 982+ messages in thread
end of thread, other threads:[~2026-03-12 15:09 UTC | newest]
Thread overview: 982+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-27 14:15 Functions with COPY Stephen Frost <[email protected]>
2003-11-27 14:21 ` Bruno Wolff III <[email protected]>
2003-11-27 14:28 ` Stephen Frost <[email protected]>
2003-11-27 14:38 ` Rod Taylor <[email protected]>
2003-11-27 14:55 ` Dave Cramer <[email protected]>
2003-11-27 15:21 ` Stephen Frost <[email protected]>
2003-11-27 15:28 ` Dave Cramer <[email protected]>
2003-11-27 15:19 ` Stephen Frost <[email protected]>
2003-11-28 16:55 ` Tom Lane <[email protected]>
2003-11-28 17:07 ` Stephen Frost <[email protected]>
2003-11-28 17:15 ` Tom Lane <[email protected]>
2003-11-28 17:30 ` Stephen Frost <[email protected]>
2003-11-28 17:47 ` Tom Lane <[email protected]>
2003-11-28 18:02 ` Stephen Frost <[email protected]>
2003-11-28 18:37 ` Tom Lane <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
2026-03-12 15:09 [PATCH 4/9] XLogRecPtrIsInvalid -> XLogRecPtrIsValid Álvaro Herrera <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox