Re-connect to postgresql when the connection is lost
fix #3336
Reflect message IDs in channel MUCs
fix #3283
Use a transaction around the DELETE + INSERT of the after_connection_commands
Otherwise we can imagine that two clients changing this value at the same
time would mix things up.
ref #3275
Allow the execution of multiple commands after the IRC connection
fix #3275
Use if constexpr to make things a lot more readable
Use std::optional<bool> instead of OptionalBool
Rename a few “hostname” into “address”, regarding last commit
ref #3273
Allow to override the addresses used to connect to an IRC network
fix #3273
Fix the INSERT query for types that don’t have any Id column
Actually display the error message from postgresql when a query failed
Log the warn/error messages coming from libpq in a correct format
Sort archive messages by date (and only then by id)
fix #3337
Because apparently the IDs are not always incrementing. We still use them to
know the order of two messages that were received at the same second (in
this case, the ID will always be incrementing).
Fix the actual_bind versions for integrals
Fix a memory leak when psql connection fails
Support the <before/> element in MAM requests
Use the same function for both history orders
Send a item-not-found error when the “after” value is not in the archive