It defaults to 5. Basically if you reuse a prepared statement 5 times it will convert it from an unnamed portal to a named statement. Unnamed portals are automatically cleaned up after use. named statements have to be deallocated
I was wondering why this setting exists and why it is by default disabled? Is there some danger associated with it or some reason I would NOT want it to be set? Thanks!