Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. foo=# create function pllua_init() returns void language pllua_ng as $$
  2. print('foobar')
  3. $$;
  4. CREATE FUNCTION
  5. Time: 3.495 ms
  6. foo=# alter database foo set pllua_ng.on_init = 'spi.execute([[ select pllua_init() ]])';
  7. ALTER DATABASE
  8. Time: 10.375 ms
  9. foo=# \q
  10. $ /opt/postgres-10.1/bin/psql foo
  11. psql (10.1)
  12. Type "help" for help.
  13. foo=# do language plluau_ng $$ print('foobar') $$;
  14. server closed the connection unexpectedly
  15. This probably means the server terminated abnormally
  16. before or while processing the request.
  17. The connection to the server was lost. Attempting reset: Failed.
  18. Time: 152.826 ms
  19. ?!>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement