Skip temporary table schema name from explain-verbose output.

From: Amul Sul <sulamul(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Skip temporary table schema name from explain-verbose output.
Date: 2021-04-27 05:20:22
Message-ID: CAAJ_b97W=QaGmag9AhWNbmx3uEYsNkXWL+OVW1_E1D3BtgWvtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Temporary tables usually gets a unique schema name, see this:

postgres=# create temp table foo(i int);
CREATE TABLE
postgres=# explain verbose select * from foo;
QUERY PLAN
-----------------------------------------------------------------
Seq Scan on pg_temp_3.foo (cost=0.00..35.50 rows=2550 width=4)
Output: i
(2 rows)

The problem is that explain-verbose regression test output becomes
unstable when several concurrently running tests operate on temporary
tables.

I was wondering can we simply skip the temporary schema name from the
explain-verbose output or place the "pg_temp" schema name?

Thoughts/Suggestions?

Regares,
Amul

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2021-04-27 05:32:12 Re: Replication slot stats misgivings
Previous Message Joel Jacobson 2021-04-27 05:16:25 Re: [PATCH] Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids