From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Dave Cramer <pg(at)fastcrypt(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: create tablespace fails silently, or succeeds improperly |
Date: | 2010-10-18 15:31:12 |
Message-ID: | 1287415803-sup-9023@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Dave,
Excerpts from Dave Cramer's message of lun oct 18 12:23:40 -0300 2010:
> as seen below create tablespace does not throw an error or appear to
> do anything other than register the tablespace.
>
> postgres(at)db01:~> less /opt/pg/data/jnj_indexes/PG_VERSION
> 8.4
> postgres(at)db01:~> /opt/pg91/bin/psql -p 5433
> psql (9.0.1)
> Type "help" for help.
>
> postgres=# select version();
> version
> -------------------------------------------------------------------------------------------------------------------
> PostgreSQL 9.0.1 on x86_64-unknown-linux-gnu, compiled by GCC gcc
> (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11), 64-bit
> (1 row)
>
> postgres=# create TABLESPACE jnj_indexes location '/opt/pg/data/jnj_indexes';
> CREATE TABLESPACE
IIRC the reason this works is that the tablespace code now creates a
version-specific subdirectory inside the specified directory. This was
done to help binary upgrades.
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-10-18 15:37:44 | Re: create tablespace fails silently, or succeeds improperly |
Previous Message | Dave Cramer | 2010-10-18 15:23:40 | create tablespace fails silently, or succeeds improperly |