Re: where is the table? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: where is the table?
Date
Msg-id D960CB61B694CF459DCFB4B0128514C202FF666A@exadv11.host.magwien.gv.at
Whole thread Raw
In response to where is the table?  (sergio nogueira <sergiopnog@gmail.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Mike Christensen
Date:
Subject: Re: What's wrong with this query?
Next
From: "Albe Laurenz"
Date:
Subject: Re: What's wrong with this query?