I have some difficulties on typing the querys in the pgsql console environment. once I type something wrong I should delete the whole line and type in again. I would like to know is there any tools that could make it more like the "bash" shell environment. Using the arrow key there in the pgsql.