Re: BUG #2429: Explain does not report object's schema

From: Cristiano Duarte <cunha17(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2429: Explain does not report object's schema
Date: 2006-05-10 14:26:30
Message-ID: e3st6e$2hh5$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Hi Lars,

Lars Haugseth wrote:
> * cunha17(at)gmail(dot)com ("Cristiano da Cunha Duarte") wrote:
> |
> | 1) PROBLEM:
> |
> | Explain command does not report the schema of objects, so when using
> | objects having the same name but in different schemas, they will apear
> | as being the same object.
> |
> | 2) HOW TO REPRODUCE:
>
> Don't know whether this would help in your situation, but you can make the
> output of EXPLAIN disambiguous by using table aliases:
>
> EXPLAIN
> SELECT *
> FROM schema1.mytable AS mt1, schema2.mytable AS mt2
> WHERE 1=0
>
> (The AS keyword is optional.)
>
> The aliases will be included in the query plan output.
>
Thanks for the notice, but to do this, I would have to raise errors on
queries having tables with the same name, which is not what I meant.

But, if there is no other way, I'll do it.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Casey Duncan 2006-05-10 16:34:20 Re: BUG #2428: ERROR: out of memory, running INSERT SELECT statement
Previous Message Lars Haugseth 2006-05-10 12:54:41 Re: BUG #2429: Explain does not report object's schema

Browse pgsql-hackers by date

  From Date Subject
Next Message PFC 2006-05-10 14:38:31 Re: [HACKERS] Big IN() clauses etc : feature proposal
Previous Message Markus Schaber 2006-05-10 13:29:16 Re: [HACKERS] Big IN() clauses etc : feature proposal