pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: BRIN autosummarization may need a snapshot
7+ messages / 1 participants
[nested] [flat]

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f4b68b0336bd3ff91f2ee131519b1efe1cb6fc39

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 37 ++++++++++++++++++++++++++++++---
2 files changed, 36 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a95e3d84c0e0ffd1e27c185dd69d053e43f2f8b5

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 46 ++++++++++++++++++++++++++++++---
2 files changed, 44 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3c7b47974ec7332a2bb98cf51888dd4a4f367506

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 39 +++++++++++++++++++++++++++++----
2 files changed, 37 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f0ad417161977d034e3d5845d043c44bef3d1f8a

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 39 +++++++++++++++++++++++++++++----
2 files changed, 37 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/419ffde235469bd7459bd52b7eeed76a7520853a

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 37 ++++++++++++++++++++++++++++++---
2 files changed, 36 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/23ddadf6835e86a1a3205b2e433a35f7ad139ea6

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 37 ++++++++++++++++++++++++++++++---
2 files changed, 36 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: BRIN autosummarization may need a snapshot
@ 2025-11-04 12:24  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Álvaro Herrera @ 2025-11-04 12:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

BRIN autosummarization may need a snapshot

It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224f0 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6ef33c8051ddfcfff32e5c788e8e7e2f5b10669b

Modified Files
--------------
src/backend/postmaster/autovacuum.c     |  2 ++
src/test/modules/brin/t/01_workitems.pl | 37 ++++++++++++++++++++++++++++++---
2 files changed, 36 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2025-11-04 12:24 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>
2025-11-04 12:24 pgsql: BRIN autosummarization may need a snapshot Álvaro Herrera <alvherre@kurilemu.de>

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