pg_dump, pg_restore and template relationships

From: Mark S <mark(at)gravitycollege(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: pg_dump, pg_restore and template relationships
Date: 2008-02-18 01:11:39
Message-ID: 47B8DB4B.5050606@gravitycollege.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#333333">
I'm moving a PostgreSQL cluster from one server to another, and in the
process also moving from 7.4 to 8.1. On the home server I have a
template database called template_postgis that I used to create a
couple other databases.&nbsp; According to the PostgreSQL docs, changes made
to a template will be effected on databases created from that
template.&nbsp; I'm curious how, if at all, this relationship is maintained
through a pg_dump and pg_restore?&nbsp; In particular, let's say I have
template "A" and I create database "B" from it.&nbsp; If I want to dump "B"
and restore it elsewhere, will the dump of "B" include all of the
functions / types that it inherits from "A", or for to maintain
functionality do I need to dump and restore "A" first, then "B"
afterwards?<br>
<br>
I've looked through the docs on pg_dump and pg_restore but I wasn't
able to find the answers to this.<br>
<br>
Thank you,<br>
Mark<br>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 1.0 KB

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Brandon Kane 2008-02-18 01:12:19 Re: Query Planner Issue - View and regexp_replace?
Previous Message Tom Lane 2008-02-17 23:50:04 Re: Query Planner Issue - View and regexp_replace?