While there is an existing 30inches rule above ground, some building codes require railings for porches that are 15-24inches above ground. If the porch is 9ft (and above) aboveground, the railings should be supported by 42inch balusters at a maximum of 4ft spacing in between. But then again, as have been mentioned, you can install one anytime for safety.