From: Bricklen Anderson <banderson@presinet.com>
To: Benjamin Arai <barai@cs.ucr.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Backing up views, functions
Date: Thu, 08 Dec 2005 07:32:47 -0800
Message-ID: <4398521F.7040001@presinet.com> (raw)
In-Reply-To: <4397D871.20208@cs.ucr.edu>
References: <4397D871.20208@cs.ucr.edu>
Benjamin Arai wrote:
> I have a database of several million records and we are currently
> developing pl functions and views. How do you dump only the code for
> views and functions?
>
> Benjamin
>
Also, one way of recreating views:
select 'drop view '||viewname||'; CREATE OR REPLACE view '||viewname||'
as '||definition||'\n' from pg_views where schemaname='public';
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: banderson@presinet.com, barai@cs.ucr.edu
Subject: Re: Backing up views, functions
In-Reply-To: <4398521F.7040001@presinet.com>
References: <4397D871.20208@cs.ucr.edu> <4398521F.7040001@presinet.com>
* 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