Your circuit will work. For sure you need to know the voltage drop in the diodes.
There are special IC s for power supply applications, they switch over automatically, while avoiding the usual voltage drop of diodes.
I think your IC as 2 VCC ponits and 2 ground points that could be meant for the the automatic switch over of the supply. As suggested by klaus