Or something like this in SQL or PL/pgSQL: test=> SELECT ltrim(textin(bit_out(12::bit(64))), '0');ltrim -------1100 (1 row)
Sweeeeet. Good old i/o functions. Chris ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend