title: How can I mimic the php urldecode function in postgresql?
body: <p>I have a column url encoded with urlencode in php. I wish to make a select like this 
  SELECT some_mix_of_functions(...) AS Decoded FROM table</p>
  
  <p>Replace is not a good solution because I will have to add all the decoding by hand. Any other solution to get the desire result ?</p>