Skip to content

Instantly share code, notes, and snippets.

View lihan's full-sized avatar

lihan lihan

View GitHub Profile
@lihan
lihan / psql-srv.py
Created February 22, 2022 10:57 — forked from setop/psql-srv.py
postgres "server" wire protocol example (ported python3)
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432
# Password:
# psql (9.1.10, server 0.0.0)
# WARNING: psql version 9.1, server version 0.0.
# Some psql features might not work.
# Type "help" for help.
#
# th30z=> select foo;
# a | b
# ---+---