#
# Test case for statement timeout patch.
# Expecting a statement timeout error.
#
'Q'	"SET statement_timeout = '2s'"

# Receive response from backend
'Y'

# Execute statement which takes 1 second. No timeout.
'P'	""	"SELECT pg_sleep(1)"	0
'B'	""	""	0	0	0
'E'	""	0

# Execute statement which takes 2 seconds. Timeout occurs.
'P'	""	"SELECT pg_sleep(2)"	0
'B'	""	""	0	0	0
'E'	""	0

# Issue Sync message
'S'

# Receive response from backend
'Y'

# Send terminate message
'X'
