Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => PostgreSQL Support => Topic started by: Speculos on April 06, 2022, 12:07:58 PM

Title: PostgreSQL versions supported
Post by: Speculos on April 06, 2022, 12:07:58 PM
Hi,

Can you confirm which versions of PostgreSQL are supported ?

I have setup a forum with the latest version of PostgreSQL 14.2 on an official Docker image, and it seems to cause trouble.

Most of the trouble are with Mods so far so I guess this is not related to SMF directly.

I've notice that the libpq library is on version 12.9, does it means that this is the latest version of PostgreSQL compatible ?

Regards.
Title: Re: PostgreSQL versions supported
Post by: shawnb61 on April 06, 2022, 12:16:20 PM
I test in pg14 regularly.  SMF works great.  Blazingly fast...

Yes, unfortunately, some mods do not support pg for one reason or another. 
Title: Re: PostgreSQL versions supported
Post by: Sesquipedalian on April 06, 2022, 12:27:23 PM
SMF 2.1.1 supports PostgreSQL 9.6 and above. To our knowledge, there are no compatibility issues with more recent versions of PostgreSQL.

Regarding mods:

If you are having issues, open a new topic here to describe the problem, and our friendly support team will be glad to help you.
Title: Re: PostgreSQL versions supported
Post by: Speculos on April 06, 2022, 01:31:24 PM
Thanks for the quick replies.

I always download mods from here, and every mods are compatible with the SMF version I'm running.

I will consider MariaDB as a definitive database to avoid such behaviour, I'm currently testing SMF.

Can you confirm that the latest MariaDB 10.7 version if also compatible and if not can you point me to the most stable database/version to use with SMF ?

Regards.
Title: Re: PostgreSQL versions supported
Post by: Arantor on April 06, 2022, 01:46:23 PM
Pretty sure the last super-throughly tested version of Maria was around 10.4 but I've not seen anything on 10.6 be weird, I'm not running 10.7 in production anywhere yet so I haven't looked at what might have changed.

The main problem really is mods - even the ones that use the DB abstraction layer can sometimes break in unexpected ways when newer versions change things.
Title: Re: PostgreSQL versions supported
Post by: Diego Andrés on April 06, 2022, 02:22:18 PM
CTE, group by's and missing indexes when using 'replace' are the common ones that could cause a head scratcher if not tested on pg
Maybe others surely but I don't know.
Title: Re: PostgreSQL versions supported
Post by: albertlast on April 06, 2022, 03:41:55 PM
"group by" issue got fixed in 2.1 by forcing in mysql/mariadb the strict mode,
which force mysql to be more near the standard which leads in less issue with pg.
replace got reworked with 2.1,
got some limitation in mysql setups.

cte exists on all pg supported version but not on all mysql version (use smf api to check if exists).