Fixed bug while initializing database.

When postgres requests for a shared segment that exceeds the available memory, initdb call crashes. However erbi driver was not detecting it.