Re: pg_castalog.pg_tables does not show the real tablespace for tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_castalog.pg_tables does not show the real tablespace for tables
Дата
Msg-id 1461.1239114826@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_castalog.pg_tables does not show the real tablespace for tables  ("J. Carlos Muro" <murojc@gmail.com>)
Список pgsql-admin
"J. Carlos Muro" <murojc@gmail.com> writes:
> I have created a tablespace and a database in that tablespace:

> create tablespace tb_user location '/data/tb_user';
> create database mydatabase tablespace "tb_user";
> \c mydatabase;
> create table a_table (id bigint, name text);

> I supposed that "a_table" should be in the tablespace "tb_user" as the
> database was created to use it by default. But I doesnt seem like that when
> i state the next:

The database's default tablespace is never named explicitly in pg_tables
nor in the underlying pg_class catalog.  This is intentional to make it
easier to move a database to a different default tablespace.

            regards, tom lane

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

Предыдущее
От: "J. Carlos Muro"
Дата:
Сообщение: pg_castalog.pg_tables does not show the real tablespace for tables
Следующее
От: "Charles N. Charotti"
Дата:
Сообщение: Text vs. Varchar talking about performance