pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Temporary table failed to drop after power failure 2+ messages / 1 participants [nested] [flat]
* Temporary table failed to drop after power failure @ 2011-03-14 08:09 Gnanakumar <gnanam@zoniac.com> 0 siblings, 1 reply; 2+ messages in thread From: Gnanakumar @ 2011-03-14 08:09 UTC (permalink / raw) To: pgsql-admin Hi, We're using PostgreSQL v8.2.3. Ours is a web-based application, language is Java and we're using pgpool-II v 2.0.1 purely for connection pooling (we don't use other features of pgpool like Replication, Load Balancing, etc.). We're creating temporary table using "CREATE TEMP TABLE FOO(col1, col2, ...)" and it's being heavily used in one of our application report. When the report was still running, suddenly there was a power failure and PostgreSQL was stopped abruptly without proper shutdown. Now, if run the following system catalog queries, I can see that those temporary tables were not dropped really: 1) SELECT schemaname, tablename, pg_size_pretty(size) AS size_pretty, pg_size_pretty(total_size) AS total_size_pretty FROM (SELECT *, pg_relation_size(schemaname||'.'||tablename) AS size, pg_total_relation_size(schemaname||'.'||tablename) AS total_size FROM pg_tables where tablename = 'foo') AS TABLES ORDER BY total_size DESC; 2) select * from pg_stat_user_tables where relname = 'foo'; Now, how do I fix/handle in this situation? Although this happened within our staging environment, I look forward to experts advice/recommendation before I conclude anything. Regards, Gnanam ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Temporary table failed to drop after power failure @ 2011-03-16 09:31 Gnanakumar <gnanam@zoniac.com> parent: Gnanakumar <gnanam@zoniac.com> 0 siblings, 0 replies; 2+ messages in thread From: Gnanakumar @ 2011-03-16 09:31 UTC (permalink / raw) To: pgsql-admin Any ideas/recommendation? -----Original Message----- From: Gnanakumar [mailto:gnanam@zoniac.com] Sent: Monday, March 14, 2011 1:40 PM To: pgsql-admin@postgresql.org Subject: Temporary table failed to drop after power failure Hi, We're using PostgreSQL v8.2.3. Ours is a web-based application, language is Java and we're using pgpool-II v 2.0.1 purely for connection pooling (we don't use other features of pgpool like Replication, Load Balancing, etc.). We're creating temporary table using "CREATE TEMP TABLE FOO(col1, col2, ...)" and it's being heavily used in one of our application report. When the report was still running, suddenly there was a power failure and PostgreSQL was stopped abruptly without proper shutdown. Now, if run the following system catalog queries, I can see that those temporary tables were not dropped really: 1) SELECT schemaname, tablename, pg_size_pretty(size) AS size_pretty, pg_size_pretty(total_size) AS total_size_pretty FROM (SELECT *, pg_relation_size(schemaname||'.'||tablename) AS size, pg_total_relation_size(schemaname||'.'||tablename) AS total_size FROM pg_tables where tablename = 'foo') AS TABLES ORDER BY total_size DESC; 2) select * from pg_stat_user_tables where relname = 'foo'; Now, how do I fix/handle in this situation? Although this happened within our staging environment, I look forward to experts advice/recommendation before I conclude anything. Regards, Gnanam ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-03-16 09:31 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2011-03-14 08:09 Temporary table failed to drop after power failure Gnanakumar <gnanam@zoniac.com> 2011-03-16 09:31 ` Gnanakumar <gnanam@zoniac.com>
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