postgres=# -- chr(n): Returns the character whose ascii value corresponds to the number n postgres=# SELECT chr(65), ascii('A'); chr | ascii -----+------- A | 65 (1 row) postgres=#