Re: backup and document views and user functions

From: Hélder M(dot) Vieira <hmv(at)mail(dot)telepac(dot)pt>
To: "postgres sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: backup and document views and user functions
Date: 2010-08-30 18:49:48
Message-ID: 4E7D507109C04F01A205FAB5D7E0607D@Hmv03
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi.

>I am looking for an easy way to backup views and functions. I want to store
>them in our version control system.

Well... As far as I can see, for functions you should go to the 'pg_catalog'
schema, table 'pg_proc'. In column 'prosrc' you will find the original text,
but other attributes are dispersed in a few columns, including arrays for
argument names and types. For views, you should look in the view 'pg_views'.
This is the result of a quick reading through the catalog, I hope I can only
hope I'm not missing something, please check carefully if this is waht
you're looking for.

Regards,

Helder M. Vieira

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2010-08-30 18:51:44 Re: backup and document views and user functions
Previous Message Reinoud van Leeuwen 2010-08-30 18:30:00 Re: backup and document views and user functions