Synapse ↵

logically incoherent… not!

Archive for the 'Programming' Category

Information related to programming using different languages. Tips, tricks and stuff to make your life easier

Enable a procedural language in Postgres

Posted by synapse on March 27, 2006

If you wish to add any language support to your PostgresSQL database use the createlang command from your terminal. For eg: To add PLPGSQL support -

su

su postgres

createlang plpgsql -d template1

where -d signifies name of the database. The other command line arguments that the createlang command takes are -

Read the rest of this entry »

Posted in Linux, Programming, Tips and Tricks | No Comments »

Debugging with GDB (Gnu Debugger)

Posted by synapse on December 20, 2005

GDB (Gnu Debugger) is a powerful debugging tool for both C and C++. A debugger is a program that helps you find bugs by letting you examine the state of the program as it’s running. You can view the code, see the values of the variables, follow the control flow, break in the middle of an infinite loop, and more. This article is a quick introduction to the most common and useful GDB commands and techniques.

Read the rest of this entry »

Posted in Programming | 5 Comments »