From: Darren Reed <darrenr@fastmail.net>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Is my database now too big?
Date: Sun, 14 Oct 2007 20:41:15 -0700
Message-ID: <4712E15B.8000405@fastmail.net> (raw)
In-Reply-To: <4712D97E.7010004@fastmail.net>
References: <1191730382.18880.1214536197@webmail.messagingengine.com>
<47087723.7040403@commandprompt.com>
<1191744007.14918.1214548241@webmail.messagingengine.com>
<dcc563d10710070114m35df7741tcaa01700b21baec@mail.gmail.com>
<4708A9DC.5060306@fastmail.net>
<dcc563d10710070713q6aa1fbfdqe8f07e5356d39d41@mail.gmail.com>
<47097EA7.902@fastmail.net>
<dcc563d10710071803ia92a046neef1296999173d13@mail.gmail.com>
<4712D97E.7010004@fastmail.net>
So having upgraded to 8.1.10, I thought I'd try out a few things...
# /usr/pkg/bin/pg_dumpall
--
-- PostgreSQL database cluster dump
--
\connect postgres
--
-- Roles
--
CREATE ROLE postgres;
ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN;
CREATE ROLE root;
ALTER ROLE root WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN;
--
-- Database creation
--
REVOKE ALL ON DATABASE template1 FROM PUBLIC;
REVOKE ALL ON DATABASE template1 FROM postgres;
GRANT ALL ON DATABASE template1 TO postgres;
\connect postgres
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: out of memory
DETAIL: Failed on request of size 20.
pg_dump: The command was: LOCK TABLE public.foo IN ACCESS SHARE MODE
pg_dumpall: pg_dump failed on database "postgres", exiting
# SELECT * FROM foo LIMIT 1;
ERROR: out of memory
DETAIL: Failed on request of size 20.
I don't know if this is of any significance:
# \l
List of databases
Name | Owner | Encoding
-----------+----------+-----------
postgres | postgres | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
(3 rows)
# /usr/pkg/bin/psql -U postgres template1
psql: FATAL: out of memory
DETAIL: Failed on request of size 20.
What puzzles me is why the transaction log hasn't
resulted in postgresql being able to restore itself
to a known clean state.
Darren
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: darrenr@fastmail.net, scott.marlowe@gmail.com, jd@commandprompt.com
Subject: Re: Is my database now too big?
In-Reply-To: <4712E15B.8000405@fastmail.net>
* 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