For sure. Supporting two platforms would be a ton of work for both them and third parties. And switching completely would wreak havoc on the self-hosted community, since many of us on shared hosting only have MySQL/MariaDB as an option.Most certainly XenForo will always be "MySQL only".
Curious.Lets not forget who owns MySQL
I presume they mean Oracle but mysql is free and open source soCurious.
That's why I'm curiousI presume they mean Oracle but mysql is free and open source so
XF\Db\PostgreSql\Adapter.php
public function lastInsertId()
{
// note: no (viable) equivalent in PostgreSQL
throw new Exception('It is not possible to retrieve the PostgreSQL last insert ID at this time.');
}
$config['db']['adapterClass'] = 'XF\Db\PostgreSql\Adapter';
And the problem is?Yes. Oracle owns MySQL. After it acquired SUN in 2010???
They charge for the enterprise edition. I believe Maria was forked after all this happened.
It was. And if you want MySQL without Oracle, Maria is probably the way to go (my site runs on Maria since that's what my shared hosting uses). It has corporate sponsors but so does PostgreSQL. In fact, MS and some others sponsor both. It's just that both have enough of them that no one can dominate vs. Oracle being in control of MySQL.I believe Maria was forked after all this happened.
Huh. So you could also try to adapt it to SQL Server or something like that? Not that you'd want to. SQL Server is more than a tad bloated, being MS and all. But in a corporate environment where you had it licensed and running for other purposes...perhaps.XenForo uses abstracted database adapter, so if someone wanted to make a Postgres adapter, it would be relatively easy and then then you just set in your config file which database adapter to use. So the framework is already there for someone who wanted to use Postgres. Would probably be about 15 minutes of work and would maintain across upgrades without any issues.
InSo you could also try to adapt it to SQL Server or something like that?
XF\Db
(folder src/XF/Db
) there seems only be support for MySQL and PostgreSQL.Given a choice between MS and Oracle, I'll take MS but that's a case of the better the devil you know (over twenty-five years as an MS admin on two jobs)...Well, there is no problem ( yet ) while you can still get non enterprise edition. And, MySQL has improved under Oracle. So that is all good. But there are still licensing concerns that may pop their ugly head sooner or later. Generally speaking, unless you work for oracle, It is considered an evil entity Please take that as a jest. But yes, when a company offers training material on how to license their product, you need to be suspicious.
SELECT LAST_INSERT_ID()
, could do some trickery with SELECT CURRVAL pg_get_serial_sequence(blah, blah)
.We use essential cookies to make this site work, and optional cookies to enhance your experience.