PostgreSQL 10.5 fixes authentication state across connection attempts
engineeringpostgresqlsecuritylibpqA libpq state-reset bug shows why each connection attempt needs fresh security evidence. The August update also repairs authorization through updatable views.