I'm using P3 from Glamorous Toolkit (GT) and it looks like there is a bug when a connection is open and then we quit and restart GT. This issue breaks the usage of GT PostgreSQL snippets. They don't work anymore after restarting GT. The error is: ConnectionClosed : Cannot write data. (Manual workaround is to invoke self close on the object.)
What happens is ensureConnected does not reconnect when there is a stale connection handle.
After isConnected is found to be false connect is called but it doesn't call open because of the old connection handle is not nil.
I am new to Smalltalk, GT, P3. I think this is a fix...
