mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 22:13:23 +02:00
18 lines
193 B
Plaintext
18 lines
193 B
Plaintext
--
|
|
-- init pgcrypto
|
|
--
|
|
\set ECHO none
|
|
-- check for encoding fn's
|
|
select encode('foo', 'hex');
|
|
encode
|
|
--------
|
|
666f6f
|
|
(1 row)
|
|
|
|
select decode('666f6f', 'hex');
|
|
decode
|
|
--------
|
|
foo
|
|
(1 row)
|
|
|