views:

714

answers:

2

I'm using pgAdmin III 1.8.4 and finding it a harsh mistress.

When writing stored procedures (functions), there's no query compilation. So I have no idea if my function will work until I call it.

How do other people work around this deficiency? (Other than getting it right first time :p)

+2  A: 

EnterpriceDB includes PL/PGSQL Debugger which you can use to step through the code.

Quassnoi
Thanks, will have a look. I was thinking more process than a software solution.
TreeUK
Any way to see the values of temp tables while debugging?
torial
+2  A: 

Write a unit test for it. Granted this won't give you debugging capability, but you should ideally have a unit test suite (and an integration test suite) that you run against your code that proves that it works... and that lets you know when something breaks.

Akrikos
Fair point, but waiting until the data access code is up and running before knowing if the pgsql is even valid is more the issue here.
TreeUK
Akrikos