Re: Track changes to function code

Поиск
Список
Период
Сортировка
От Jacob Bunk Nielsen
Тема Re: Track changes to function code
Дата
Msg-id spamdrop+87d2cy99dm.fsf@atom.bunk.cc
обсуждение исходный текст
Ответ на Track changes to function code  (Rebecca Clarke <r.clarke83@gmail.com>)
Ответы Re: Track changes to function code  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
Rebecca Clarke <r.clarke83@gmail.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

--
Jacob



В списке pgsql-general по дате отправления:

Предыдущее
От: Rebecca Clarke
Дата:
Сообщение: Track changes to function code
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Track changes to function code