pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Donald Fraser <demolish@cwgsy.net>
Cc: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: pg_dumpall
Date: Thu, 20 Feb 2003 10:21:22 -0500
Message-ID: <22213.1045754482@sss.pgh.pa.us> (raw)
In-Reply-To: <003401c2d8cd$48fcaf50$1664a8c0@DEMOLITION>
References: <20030219112211.K36237-100000@megazone23.bigpanda.com>
	<003401c2d8cd$48fcaf50$1664a8c0@DEMOLITION>

"Donald Fraser" <demolish@cwgsy.net> writes:
> My question now would be, is there an easy way to place your own objects
> into pg_catalog for template0?

Changing template0 is exactly what you are NOT supposed to do, as it
breaks what pg_dump is trying to accomplish.

However, you could probably just edit the dump file to replace the
references to template0 with template1.  When you reload the dump,
you will get lots of errors as the customized objects coming in from
the dump collide with the ones copied from template1 --- but that's
what you want.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <22213.1045754482@sss.pgh.pa.us>
Permalink:  ../22213.1045754482@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22213.1045754482@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, demolish@cwgsy.net
  Subject: Re: pg_dumpall
  In-Reply-To: <22213.1045754482@sss.pgh.pa.us>
  References: <20030219112211.K36237-100000@megazone23.bigpanda.com> <003401c2d8cd$48fcaf50$1664a8c0@DEMOLITION> <22213.1045754482@sss.pgh.pa.us>

* 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