where is the table?

Started by sergio nogueiraalmost 17 years ago2 messagesgeneral
Jump to latest
#1sergio nogueira
sergiopnog@gmail.com

Hi, all.

Where is the table?

dmonitor=> create table wereisthetable(col int);
CREATE TABLE
dmonitor=> select tablename, tablespace from pg_tables where
tablename='wereisthetable';
tablename | tablespace
----------------+------------
wereisthetable |
(1 row)

dmonitor=> alter table wereisthetable set tablespace monitor_dat1;
ALTER TABLE
dmonitor=> select tablename, tablespace from pg_tables where
tablename='wereisthetable';
tablename | tablespace
----------------+------------
wereisthetable |
(1 row)

dmonitor=> select version();

version
------------------------------------------------------------------------------------------------------------
PostgreSQL 8.4rc1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.3.2
20081105 (Red Hat 4.3.2-7), 32-bit
(1 row)

Att.,
Sergio

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: sergio nogueira (#1)
Re: where is the table?

sergio nogueira wrote:

dmonitor=> create table wereisthetable(col int);
CREATE TABLE
dmonitor=> select tablename, tablespace from pg_tables where tablename='wereisthetable';
tablename | tablespace
----------------+------------
wereisthetable |
(1 row)

dmonitor=> alter table wereisthetable set tablespace monitor_dat1;
ALTER TABLE
dmonitor=> select tablename, tablespace from pg_tables where tablename='wereisthetable';
tablename | tablespace
----------------+------------
wereisthetable |
(1 row)

dmonitor=> select version();
version

------------------------------------------------------------------------------------------------------------
PostgreSQL 8.4rc1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7), 32-bit
(1 row)

Strange, your sample works as expected on my
PostgreSQL 8.4rc1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-59), 32-bit

What do you get for

select * from pg_tablespace;

Yours,
Laurenz Albe