Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. begin;
  3. do $$
  4. declare
  5.   res_headers text;
  6. begin
  7.   res_headers := '[{"Cache-Control": "public"}, {"Cache-Control": "max-age=259200"}]';
  8.   SET LOCAL "response.headers" = res_headers;
  9. end; $$;
  10. show "response.headers";
  11. rollback;
  12.  
  13. -- Result:
  14. ┌──────────────────┐
  15. │ response.headers │
  16. ├──────────────────┤
  17. │ res_headers      │
  18. └──────────────────┘
  19.  
  20. begin;
  21. SET LOCAL "response.headers" = '[{"Cache-Control": "public"}, {"Cache-Control": "max-age=259200"}]';
  22. show "response.headers";
  23. rollback;
  24.  
  25. -- Result:
  26. ┌────────────────────────────────────────────────────────────────────┐
  27. │                          response.headers                          │
  28. ├────────────────────────────────────────────────────────────────────┤
  29. [{"Cache-Control": "public"}, {"Cache-Control": "max-age=259200"}]
  30. └────────────────────────────────────────────────────────────────────┘
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement