~/talk

Fun with Functions

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
slides:none on file

Covers concrete PostgreSQL function mechanics: exact create function syntax, argument modes (IN/OUT/INOUT/VARIADIC), polymorphic types and defaults, set-returning patterns (returns table / setof / record) and examples like using generate_series with aliases. Explains language choices (SQL, PL/pgSQL, PL/Python, PL/Perl, C/internal), PG_MODULE_MAGIC/version constraints, leakproof vs security definer behavior and optimizer/security consequences, preloadable shared libraries, cost/rows hints, and practical uses (triggers, custom operators, function-local config). Good if you want runnable patterns and pitfalls.

AI-written summary · about

  1. 0:00Intro
  2. 1:16Functions in Postgres
  3. 5:53Sequel Functions
  4. 9:00Internal Functions
  5. 9:43C Language Functions
  6. 12:07Serverside Procedural Languages
  7. 17:23Dollar Quoting
  8. 17:46Anonymous Functions
  9. 19:57Changing Existing Functions
  10. 21:32Argument Syntax
  11. 24:26Argument Name
  12. 25:57Argument Type
  13. 29:48Default Expression
  14. 31:15Function Overloading
  15. 33:48Return Type
  16. 35:37Example
  17. 44:08Window Functions
  18. 44:51Volatility
  19. 46:28Behavior with Null
  20. 47:42Security Barrier View
  21. 48:50Leakproof
  22. 50:18Security Definer
  23. 51:43optimizer hints
  24. 52:23local configs
  25. 53:01function body
  26. 54:17use cases
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.