pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: alvaro@audifarma.com.co
To: pgsql-admin@postgresql.org
Subject: Problem doing pg_dumpall
Date: Thu, 15 Apr 2004 17:06:23 -0500 (COT)
Message-ID: <37411.200.31.204.249.1082066783.squirrel@audifarm.audifarma.com.co> (raw )
Hi,
As usual I wrote this email because I'm getting problems with posgtresql,
this time is with the pg_dumpall command, here´s the story:
We always make a copy of our database running
root@realserver#/var/lib/pgsql/bin/pg_dumpall > backup
It always worked fine but lately when I run this command It stops in the
middle of the process... because of the size of the backup file 2.5Gb
against 6Gb when doing it normally.
I looked at the tail of the backup file (#tail -100 backup | less)
And all I see is:
###########################################################################
-- TOC entry 442 (OID 18078)
-- Name: TABLE tbl_fact_sucursales; Type: COMMENT; Schema: public; Owner:
postgres
--
COMMENT ON TABLE tbl_fact_sucursales IS 'Archivo Plano de SIIGO, campo
sucursal';
--
-- TOC entry 457 (OID 18111)
-- Name: TABLE tbl_pg_errores_clases; Type: COMMENT; Schema: public;
Owner: postgres
--
COMMENT ON TABLE tbl_pg_errores_clases IS 'Tabla de clasificación de
errores reportados por postgresql, tomado del Apéndice A
.Error Codes de la docuemntación oficial de PostgreSQL ver 7.4.1';
\connect template1
--
-- PostgreSQL database dump
--
SET client_encoding = 'SQL_ASCII';
SET check_function_bodies = false;
SET SESSION AUTHORIZATION 'postgres';
SET search_path = public, pg_catalog;
--
-- TOC entry 7 (OID 31515354)
-- Name: plpgsql_call_handler(); Type: FUNC PROCEDURAL LANGUAGE; Schema:
public; Owner: postgres
--
CREATE FUNCTION plpgsql_call_handler() RETURNS language_handler
AS '$libdir/plpgsql', 'plpgsql_call_handler'
LANGUAGE c;
SET SESSION AUTHORIZATION DEFAULT;
--
-- TOC entry 6 (OID 31515355)
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: public; Owner:
--
CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler;
SET SESSION AUTHORIZATION 'postgres';
--
-- TOC entry 5 (OID 2200)
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
GRANT ALL ON SCHEMA public TO PUBLIC;
SET SESSION AUTHORIZATION DEFAULT;
--
-- TOC entry 3 (OID 1)
-- Name: DATABASE template1; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON DATABASE template1 IS 'Default template database';
SET SESSION AUTHORIZATION 'postgres';
--
-- TOC entry 4 (OID 2200)
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
--
COMMENT ON SCHEMA public IS 'Standard public schema';
###########################################################################
The first two tables are part of our database the rest as I understand
are part of the database template1 which must exist in order to create
other datbases when need it.
I've checked at the running database using pgAdmin III and everything
apperars normal there are three DB mydatabase, template0 and template1,
the user postgres also exists and has proper rights.
Does anyone know what the problem is...? any ideas...?
PLAN B
By now I run /var/lib/pgsql/bin/pg_dump -d mydatabase > backup to make
backup copies, but when I recover that copy in other machine the
constrains and indexes dissaper, I follow this steps:
root@anothermachine#su postgres
$createdb mydatabase
$psql -d dbsa < backup
Do you think that I have to recover the schema and then all the data...?
I know that maybe this not a big deal because in the worst case I can
create the Indexes and constraints manually, but I really want to know why
is that? Am I donig things wrong..?
I hope you can help me...
Thanks for taking some of your time to look at this message.
Bye
Alvaro Arcila
Pereira, Colombia (S.A.)
view thread (3+ messages)
Message-ID: <37411.200.31.204.249.1082066783.squirrel@audifarm.audifarma.com.co>
Permalink: ../37411.200.31.204.249.1082066783.squirrel@audifarm.audifarma.com.co/
Also on: postgresql.org/message-id/37411.200.31.204.249.1082066783.squirrel@audifarm.audifarma.com.co
copy link · copy postgr.es
reply 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: alvaro@audifarma.com.co
Subject: Re: Problem doing pg_dumpall
In-Reply-To: <37411.200.31.204.249.1082066783.squirrel@audifarm.audifarma.com.co>
References: <37411.200.31.204.249.1082066783.squirrel@audifarm.audifarma.com.co>
* 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