EXPLAIN omits schema? - Mailing list pgsql-hackers

From Dave Page
Subject EXPLAIN omits schema?
Date
Msg-id 466FB80F.4090707@postgresql.org
Whole thread Raw
Responses Re: EXPLAIN omits schema?
Re: EXPLAIN omits schema?
List pgsql-hackers
I was just looking at implementing some query tuning/debugging features
in pgAdmin, and was looking to use EXPLAIN output to get a list of the
base tables involved in the users' query. Unfortunately though it
doesn't include the schema name in the output which means I have no way
of telling for sure which table is being referred to (even in a single
query, consider SELECT * FROM s1.foo, s2.foo).

Looking to fix this, a comment in src/backend/commands/explain.c
indicates that this is intentional:

/* We only show the rel name, not schema name */
relname = get_rel_name(rte->relid);

Anyone know why? This seems like a bug to me given the ambiguity of
possible output.

Regards, Dave.


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Selecting a constant question: A summary
Next
From: Gregory Stark
Date:
Subject: Re: Selecting a constant question: A summary