Re: Segfault on ANALYZE in SERIALIZABLE isolation - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Segfault on ANALYZE in SERIALIZABLE isolation
Date
Msg-id 20190519232656.mokwnozjgy25xqxl@alap3.anarazel.de
Whole thread Raw
In response to Re: Segfault on ANALYZE in SERIALIZABLE isolation  (Sergei Kornilov <sk@zsrv.org>)
List pgsql-hackers
Hi,

On 2019-05-18 18:12:31 +0300, Sergei Kornilov wrote:
> Seems table_beginscan_analyze (src/include/access/tableam.h) should not pass second argument as NULL.

As hopefully explained downthread, and in the commit message, that's not
really the concern. We shouldn't use the snapshot in the first place.

> PS: also I noticed in src/include/utils/snapshot.h exactly same
> comment for both SNAPSHOT_SELF and SNAPSHOT_DIRTY - they have no
> difference?

That was copy & paste mistake. Fixed. Also expanded the comments a
bit. Thanks for noticing!

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: sample scans and predicate locking
Next
From: Tomas Vondra
Date:
Subject: Re: Avoiding hash join batch explosions with extreme skew and weirdstats