WordPress doesn’t support postgresql, so $wpdb wouldn’t be much help.
This article shows the challenges of supporting it:
https://codex.wordpress.org/Using_Alternative_Databases#Extend_to_support_PostgreSQL
Daunting, to say the least.
Is this to use it as the main WordPress database, or do you want to use the external data for a plugin? In the latter case you’d probably be better of putting an API in between and using that.
Thread Starter
Clara
(@cfagnola)
Thanks for reply,
I wanted to use posgesql for a custom plug-in, but at this point I design the secondary database (with domain data to fatch and display) in the same istance of mysql WordPress.
What do you think about it?
Regards,
Clara
Perfectly reasonable approach. Good luck. 🙂