Re: [GENERAL] Stored procedure workflow question

2014-12-11 Thread Andy Colson
On 12/10/2014 6:53 PM, Israel Brewster wrote: Currently, when I need to create/edit a stored procedure in Postgresql, my workflow goes like the following: - Create/edit the desired function in my "DB Commands" text file - Copy and paste function into my development database - Test - repeat above

Re: [GENERAL] Stored procedure workflow question

2014-12-10 Thread Melvin Davidson
I suggest you download and install PgAdmin. http://www.pgadmin.org/index.php It makes review of functions and other database objects, as well as maintenance, a lot easier. Otherwise, you can just use psql eg: psql \o /some_dir/your_proc_filename \sf+ \q Your function definition will now be i

Re: [GENERAL] Stored procedure workflow question

2014-12-10 Thread Paul Jungwirth
How do you handle DDL changes in general? I would treat stored procedures the same way. For instance Ruby on Rails has "database migrations" where you write one method to apply the DDL change and another to revert it, like this: def up add_column :employees, :manager_id, :integer a

Re: [GENERAL] Stored procedure workflow question

2014-12-10 Thread Adrian Klaver
On 12/10/2014 05:03 PM, Gavin Flower wrote: On 11/12/14 13:53, Israel Brewster wrote: Currently, when I need to create/edit a stored procedure in Postgresql, my workflow goes like the following: - Create/edit the desired function in my "DB Commands" text file - Copy and paste function into my d

Re: [GENERAL] Stored procedure workflow question

2014-12-10 Thread Rob Sargent
On 12/10/2014 05:53 PM, Israel Brewster wrote: Currently, when I need to create/edit a stored procedure in Postgresql, my workflow goes like the following: - Create/edit the desired function in my "DB Commands" text file - Copy and paste function into my development database - Test - repeat abo

Re: [GENERAL] Stored procedure workflow question

2014-12-10 Thread Adrian Klaver
On 12/10/2014 04:53 PM, Israel Brewster wrote: Currently, when I need to create/edit a stored procedure in Postgresql, my workflow goes like the following: - Create/edit the desired function in my "DB Commands" text file - Copy and paste function into my development database - Test - repeat abov

Re: [GENERAL] Stored procedure workflow question

2014-12-10 Thread Gavin Flower
On 11/12/14 13:53, Israel Brewster wrote: Currently, when I need to create/edit a stored procedure in Postgresql, my workflow goes like the following: - Create/edit the desired function in my "DB Commands" text file - Copy and paste function into my development database - Test - repeat above un

[GENERAL] Stored procedure workflow question

2014-12-10 Thread Israel Brewster
Currently, when I need to create/edit a stored procedure in Postgresql, my workflow goes like the following:- Create/edit the desired function in my "DB Commands" text file- Copy and paste function into my development database- Test- repeat above until it works as desired- Copy and paste function i