From: | Rebecca Clarke <r(dot)clarke83(at)gmail(dot)com> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Jacob Bunk Nielsen <jacob(at)bunk(dot)cc>, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Track changes to function code |
Date: | 2014-07-21 13:22:43 |
Message-ID: | CAMChtdd3i_epMC2p3AeQE3GzcBL6=o_V2vf6=OW5L2CVLLMPTQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks guys. I'll check that out.
On Mon, Jul 21, 2014 at 2:12 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
wrote:
>
> Hi
>
> 2014-07-21 14:36 GMT+02:00 Jacob Bunk Nielsen <jacob(at)bunk(dot)cc>:
>
> Rebecca Clarke <r(dot)clarke83(at)gmail(dot)com> writes:
>>
>> > At present when a function is being edited we keep note of when and
>> > by who within comments in the function's code.
>>
>> That sounds cumbersome.
>>
>> > Is there, or can anyone recommend, any open source software that
>> > tracks function activity when it comes to edits (not executions)?
>>
>> How about keeping the code outside of the database in a VCS such as git,
>> Subversion or whatever you are used to using for other code projects?
>>
>> That will also make it possible easily go back to previous versions if
>> you should need to some day.
>>
>> You simply put your functions in one or more .sql files that you
>> version control using e.g. git.
>>
>> Once you have written your functions you can put them in you database
>> using:
>>
>> psql -f myfile.sql
>>
>
> yes, it is good way
>
> stored procedures are code as any other and there are same rules. Use
> files, use a your preferred editor, use makefiles, use GIT
>
> Regards
>
> Pavel Stehule
>
>
>>
>> --
>> Jacob
>>
>>
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Ramesh T | 2014-07-21 14:13:10 | cursor return null |
Previous Message | Pavel Stehule | 2014-07-21 13:12:40 | Re: Track changes to function code |