Re: Temp tables are curious creatures....

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Temp tables are curious creatures....
Дата
Msg-id 16263.1020130504@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Temp tables are curious creatures....  (Rod Taylor <rbt@zort.ca>)
Ответы Re: Temp tables are curious creatures....  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Rod Taylor <rbt@zort.ca> writes:
> Appears psql needs to know how to differentiate between it's own temp
> tables and those of another connection.

More generally, psql is as yet clueless about schemas.

regression=# create schema foo;
CREATE
regression=# create schema bar;
CREATE
regression=# create table foo.tab1 (f1 int);
CREATE
regression=# create table bar.tab1 (f2 int);
CREATE
regression=# \d tab1        Table "tab1"Column |  Type   | Modifiers
--------+---------+-----------f1     | integer |f2     | integer |

This is ... um ... wrong.  I am not real sure what the right behavior
is, however.  Should \d accept patterns like schema.table (and how
should its wildcard pattern matching fit with that?)  If you don't
specify a schema, should it only show tables visible in your search
path?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Temp tables are curious creatures....
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Temp tables are curious creatures....