#
# Test case for statement timeout patch.
#
'Q'	"SET statement_timeout = '3s'"

# Receive response from backend
'Y'

# Execute statement which takes 2 seconds.
'P'	"S1"	"SELECT pg_sleep(2)"	0
'B'	"S2"	"S1"	0	0	0

'P'	""	"SET statement_timeout = '1s'"	0
'B'	""	""	0	0	0
'E'	""	0

# Execute statement which takes 2 seconds (statement timeout expected).
'E'	"S2"	0

# Issue Sync message
'S'

# Receive response from backend
'Y'

# Execute statement which takes 2 seconds (statement timeout expected).
'P'	"S3"	"SELECT pg_sleep(2)"	0
'B'	"S2"	"S3"	0	0	0
'E'	"S2"	0

# Issue Sync message
'S'

# Receive response from backend
'Y'

# Send terminate message
'X'
