added postgres inherits support