http://wiki.postgresql.org/wiki/Sprintf
# select printf('% is a % and % is a %, but %% is a %', '{hello,word,1,number,percent sign}'); printf ------------------------------------------------------------ hello is a word and 1 is a number, but % is a percent sign (1 fila)