Re: where is the table?

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "sergio nogueira *EXTERN*" <sergiopnog(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: where is the table?
Date: 2009-06-22 07:41:30
Message-ID: D960CB61B694CF459DCFB4B0128514C202FF666A@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2009-06-22 07:52:40 Re: What's wrong with this query?
Previous Message Mike Christensen 2009-06-22 02:23:40 Re: What's wrong with this query?