Re: backup and document views and user functions - Mailing list pgsql-sql

From Hélder M. Vieira
Subject Re: backup and document views and user functions
Date
Msg-id 4E7D507109C04F01A205FAB5D7E0607D@Hmv03
Whole thread Raw
In response to backup and document views and user functions  (David Harel <hareldvd@gmail.com>)
List 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



pgsql-sql by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: backup and document views and user functions
Next
From: Reinoud van Leeuwen
Date:
Subject: Re: backup and document views and user functions