From: Michael Kleiser <mkl@webde-ag.de>
To: pgsql-admin@postgresql.org
Subject: Why is the index not created in the tablespace delivered in the create-index-command ?]
Date: Mon, 11 Oct 2004 17:39:59 +0200
Message-ID: <416AA94F.30209@webde-ag.de> (raw)
On PosgreSQl 8.0.0 beta 3 (on SuSE Linux 8.1) I tried this:
mkdir /opt/pgsql/data2
mkdir /opt/pgsql/data3
psql test1
test1=# CREATE TABLESPACE ts_test_1 OWNER testuser LOCATION '/opt/pgsql/data2';
CREATE TABLESPACE
test1=# CREATE TABLESPACE ts_test_2 OWNER testuser LOCATION '/opt/pgsql/data3';
CREATE TABLESPACE
test1=# \q
psql test1 testuser
test1=> create table foobar ( foo varchar(50) ) TABLESPACE ts_test_1;
CREATE TABLE
test1=> select * from pg_tables where tablespace='ts_test_1';
schemaname | tablename | tablespace | tableowner | hasindexes | hasrules | hastriggers
------------+-----------+------------+------------+------------+----------+-------------
public | foobar | ts_test_1 | testuser | f | f | f
(1 row)
test1=> create index ix_foobar on foobar(foo) TABLESPACE ts_test_2;
CREATE INDEX
test1=> select * from pg_indexes where tablename='foobar';
schemaname | tablename | tablespace | indexname | indexdef
------------+-----------+------------+-----------+-------------------------------------------------------------------------
public | foobar | ts_test_1 | ix_foobar | CREATE INDEX ix_foobar ON foobar USING btree (foo) TABLESPACE ts_test_2
(1 row)
Why is index "ix_foobar" in tablespace "ts_test_1" and not in tablespace "ts_test_2" ?
Is it a bug ?
regards
Michael Kleiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mkl@webde-ag.de
Subject: Re: Why is the index not created in the tablespace delivered in the create-index-command ?]
In-Reply-To: <416AA94F.30209@webde-ag.de>
References: <416AA94F.30209@webde-ag.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox