Why schema of table is removed from explain?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Why schema of table is removed from explain?
Date: 2011-09-01 18:08:22
Message-ID: 20110901180822.GA18044@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

example:
$ create schema x;
CREATE SCHEMA

$ create table x.y as select * from pg_class;
SELECT 294

$ explain select * from x.y limit 1;
QUERY PLAN
------------------------------------------------------------
Limit (cost=0.00..0.04 rows=1 width=189)
-> Seq Scan on y (cost=0.00..13.70 rows=370 width=189)
(2 rows)

Why it doesn't show "Seq Scan on x.y" ? it makes certain plans virtually
useless, when you can't know which schema was used?!

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2011-09-01 19:24:09 How to get around this limitation (ALTER DATABASE db SET search_path = ...)
Previous Message Scott Marlowe 2011-09-01 17:30:21 Re: md5 of table