File: init.out

package info (click to toggle)
postgresql-18 18.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 157,012 kB
  • sloc: ansic: 995,386; sql: 128,177; perl: 59,363; xml: 30,905; yacc: 21,024; lex: 9,000; makefile: 6,894; sh: 5,372; cpp: 995; python: 892; asm: 40; sed: 3
file content (13 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
--
-- init pgcrypto
--
CREATE EXTENSION pgcrypto;
-- check error handling
select gen_salt('foo');
ERROR:  gen_salt: Unknown salt algorithm
select digest('foo', 'foo');
ERROR:  Cannot use "foo": No such hash algorithm
select hmac('foo', 'foo', 'foo');
ERROR:  Cannot use "foo": No such hash algorithm
select encrypt('foo', 'foo', 'foo');
ERROR:  Cannot use "foo": No such cipher algorithm