From: ganesh.kannan@weatheranalytics.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14168: ALTER TABLE SET LOGGED failing
Date: Wed, 01 Jun 2016 04:57:41 +0000
Message-ID: <20160601045741.30388.7312@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14168
Logged by: Ganesh Kannan
Email address: ganesh.kannan@weatheranalytics.com
PostgreSQL version: 9.5.3
Operating system: Red Hat Enterprise 7.2
Description:
We have a large number of unlogged tables in our database and I am trying to
migrate them over to regular tables. I decided to use 9.5 feature of SET
LOGGED as a quicker way to do this job. However we are running in to space
related issue , where it is not clear why this is happening, and getting
some cryptic lack of space errors. All tables were created using " create
unlogged table ..." command.
e.g.
psql $ alter table schema.test_y1999 set logged ;
psql:mvTS2.sql:6: ERROR: could not extend file
"pg_tblspc/16404/PG_9.5_201510051/16407/61740.1": wrote only 4096 of 8192
bytes at block 175411
HINT: Check free disk space.
Time: 335539.031 ms
However, there is enough free space available on the volumes to accommodate
several of the tables, but ALTER TABLE set logged command consistently
fails, df -h shows this:
>> df -h | grep data5
/dev/mapper/vg_pgdata5-lv_pgdata5 9.8T 9.5T 363G 97% /pg_land_data5
(table size is ~24GB, free space available ~363G)
>> I even validated that this is not a space issue by running the
following:
alter table schema.test_y1999 set tablespace ts_data5 ;
>> succesfuly completes.
(tablespace ts_data5 is mounted on /pg_data5)
As you can see " SET TABLESPACE" behavior is very different than " ... SET
LOGGED" which fails each time.
Can someone help troubleshooting this issue? I am not sure what " ...SET
LOGGED" is checking.
Any help or pointers would be greatly appreciated.
~Ganesh Kannan
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: ganesh.kannan@weatheranalytics.com
Subject: Re: BUG #14168: ALTER TABLE SET LOGGED failing
In-Reply-To: <20160601045741.30388.7312@wrigleys.postgresql.org>
References: <20160601045741.30388.7312@wrigleys.postgresql.org>
* 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