client_min_messages.pt 706 B

1234567891011121314151617181920212223242526272829
  1. # Test logic related to filtering which messages are sent to clients based on severity levels
  2. # Check default behavior
  3. send
  4. Query {"query": "COMMIT"}
  5. ----
  6. until
  7. ReadyForQuery
  8. ----
  9. NoticeResponse {"fields":[{"typ":"S","value":"WARNING"},{"typ":"C","value":"25P01"},{"typ":"M","value":"there is no transaction in progress"}]}
  10. CommandComplete {"tag":"COMMIT"}
  11. ReadyForQuery {"status":"I"}
  12. # Change client_min_messages and see that NoticeResponse is missing
  13. send
  14. Query {"query": "SET client_min_messages = ERROR"}
  15. Query {"query": "COMMIT"}
  16. ----
  17. until
  18. ReadyForQuery
  19. ReadyForQuery
  20. ----
  21. CommandComplete {"tag":"SET"}
  22. ReadyForQuery {"status":"I"}
  23. CommandComplete {"tag":"COMMIT"}
  24. ReadyForQuery {"status":"I"}