The Goal is simple, make it non-blocking with minimum OS thread to handle, so we get lite properties, that's means easy to scale. every code that implement here based on postgres 9.6(latest when i write this) https://www.postgresql.org/docs/manuals/ that means any server above 7.6 should works fine.