Implements pg:attach and pg:detach