Re: [CLOBBER_CACHE]Server crashed with segfault 11 while executing clusterdb
Amul Sul <sulamul@gmail.com>
From: Amul Sul <sulamul@gmail.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Michael Paquier <michael@paquier.xyz>, Noah Misch <noah@leadboat.com>, Neha Sharma <neha.sharma@enterprisedb.com>,
Amit Langote <amitlangote09@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-07-12T05:00:36Z
Lists: pgsql-hackers
Attachments
- v5_Add-RelationGetSmgr-inline-function.patch (application/octet-stream) patch v5
On Fri, Jul 9, 2021 at 7:30 PM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote: > > On 2021-Jul-09, Amul Sul wrote: > > > > On Tue, Jul 6, 2021 at 11:06 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > > > > The point of the static-inline function idea was to be cheap enough > > > > that it isn't worth worrying about this sort of risky optimization. > > > > Given that an smgr function is sure to involve some kernel calls, > > > > I doubt it's worth sweating over an extra test-and-branch beforehand. > > > > So where I was hoping to get to is that smgr objects are *only* > > > > referenced by RelationGetSmgr() calls and nobody ever keeps any > > > > other pointers to them across any non-smgr operations. > > > Herewith attached version did the same, thanks. > > I think it would be valuable to have a comment in that function to point > out what is the function there for. Thanks for the suggestion, added the same in the attached version. Regards, Amul
Commits
-
Replace RelationOpenSmgr() with RelationGetSmgr().
- e21856fd652a 12.14 landed
- d4acf2eb94f3 11.19 landed
- 9a299cf7c21f 13.10 landed
- 32d5a4974c81 14.7 landed
- f10f0ae420ee 15.0 landed
-
Avoid possible crash while finishing up a heap rewrite.
- d4791ac35cb1 13.3 landed
- 9d523119fd38 14.0 landed
-
Redefine pg_class.reltuples to be -1 before the first VACUUM or ANALYZE.
- 3d351d916b20 14.0 cited