forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraise.pt
69 lines (56 loc) · 1.28 KB
/
raise.pt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Test that the RAISE statement sends messages with the correct severity.
# Ensure all severity levels are actually sent to the client
send
Query {"query": "SET client_min_messages TO DEBUG"}
----
until
ReadyForQuery
----
CommandComplete {"tag":"SET"}
ReadyForQuery {"status":"I"}
send
Query {"query": "RAISE DEBUG"}
----
until err_field_typs=S
CommandComplete
ReadyForQuery
----
NoticeResponse {"fields":[{"typ":"S","value":"DEBUG"}]}
CommandComplete {"tag":"RAISE"}
ReadyForQuery {"status":"I"}
send
Query {"query": "RAISE INFO"}
----
until err_field_typs=S
ReadyForQuery
----
NoticeResponse {"fields":[{"typ":"S","value":"INFO"}]}
CommandComplete {"tag":"RAISE"}
ReadyForQuery {"status":"I"}
send
Query {"query": "RAISE LOG"}
----
until err_field_typs=S
ReadyForQuery
----
NoticeResponse {"fields":[{"typ":"S","value":"LOG"}]}
CommandComplete {"tag":"RAISE"}
ReadyForQuery {"status":"I"}
send
Query {"query": "RAISE NOTICE"}
----
until err_field_typs=S
ReadyForQuery
----
NoticeResponse {"fields":[{"typ":"S","value":"NOTICE"}]}
CommandComplete {"tag":"RAISE"}
ReadyForQuery {"status":"I"}
send
Query {"query": "RAISE WARNING"}
----
until err_field_typs=S
ReadyForQuery
----
NoticeResponse {"fields":[{"typ":"S","value":"WARNING"}]}
CommandComplete {"tag":"RAISE"}
ReadyForQuery {"status":"I"}