added sysv hack for postgres loading