Re: Failed Assert while pgstat_unlink_relation

2022-12-05 Thread Andres Freund
Hi, On 2022-12-05 15:20:55 +0900, Kyotaro Horiguchi wrote: > The in-xact created relation t1 happened to be scanned during the > CREATE RULE and a stats entry is attached. So the stats entry loses t1 > at roll-back, then crashes. Thus, if I understand it correctly, it > seems to me that just

Re: Failed Assert while pgstat_unlink_relation

2022-12-04 Thread Kyotaro Horiguchi
At Thu, 1 Dec 2022 19:23:28 -0800, Andres Freund wrote in > > AtEOXact_PgStat_DroppedStats() visits a relation that has been dropped > > then wiped (when CLOBBER_FREED_MEMORY) by AtEOXact_RelationCache() > > called just before. Since the relcache content directly pointed from > > stats module

Re: Failed Assert while pgstat_unlink_relation

2022-12-01 Thread Andres Freund
Hi, On 2022-11-29 15:42:45 +0900, Kyotaro Horiguchi wrote: > At Mon, 28 Nov 2022 14:01:30 +0530, vignesh C wrote in > > Hi, > > > > While reviewing/testing one of the patches I found the following Assert: > > #0 0x55c6312ba639 in pgstat_unlink_relation (rel=0x7fb73bcbac58) > > at

Re: Failed Assert while pgstat_unlink_relation

2022-11-28 Thread Kyotaro Horiguchi
At Mon, 28 Nov 2022 14:01:30 +0530, vignesh C wrote in > Hi, > > While reviewing/testing one of the patches I found the following Assert: > #0 0x55c6312ba639 in pgstat_unlink_relation (rel=0x7fb73bcbac58) > at pgstat_relation.c:161 > #1 0x55c6312bbb5a in

Failed Assert while pgstat_unlink_relation

2022-11-28 Thread vignesh C
Hi, While reviewing/testing one of the patches I found the following Assert: #0 0x55c6312ba639 in pgstat_unlink_relation (rel=0x7fb73bcbac58) at pgstat_relation.c:161 #1 0x55c6312bbb5a in pgstat_relation_delete_pending_cb (entry_ref=0x55c6335563a8) at pgstat_relation.c:839 #2