StatisticsObjIsVisibleExt lacks "do not look in temp namespace" - Mailing list pgsql-hackers

From Noah Misch
Subject StatisticsObjIsVisibleExt lacks "do not look in temp namespace"
Date
Msg-id 20250920162116.2e.nmisch@google.com
Whole thread Raw
Responses Re: StatisticsObjIsVisibleExt lacks "do not look in temp namespace"
List pgsql-hackers
StatisticsObjIsVisibleExt() lacks the "do not look in temp namespace" code of
the rest of the non-relation, non-type namespace searches.  Patch attached.
See its log messages for the consequences.

Incidentally, stats on temp tables do default to a permanent schema.  That
seems fine, though:

set search_path = public;
CREATE TEMP TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
CREATE STATISTICS s ON a, b FROM ab1;  -- creates public.s
\dX *.*

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: AIX support
Next
From: Tom Lane
Date:
Subject: Re: allow benign typedef redefinitions (C11)