Gramps with PostgreSQL : multi-user use?

Hello,
I saw that it’s possible to work with a PostgreSQL database instead of SQLite.
Would this allow multi-user use on a local network?
If so, have any tests been done yet?
Thanks

The database backend is not where the Gramps (for desktops) single-user limitation is implemented.

See the discussion at

Thank you!
So if I understand correctly, this isn’t a viable solution.

Correct. Gramps for Desktop intentionally implements a lock file in the database folder to prohibit multi-user access.

There has been deliberate movement towards identifying and resolving the roadblocks for multi-user access.

Concurrent access is possible on a local network, but not yet supported. There are a few issues to be aware of:

  • If two users edit the same object at the same time, the last record object will overwrite previous changes.
  • The undo facility will undo the last local change, which may not be the last change made.
  • Metadata is not written to the database immediately. This is actually a bug that needs fixing and will also cause a problem in single-user mode if Gramps crashes.

For testing purposes you can just delete the lock file as @emyoulation mentioned. The SQLite backend also supports multi-user access.

One of our goals is to support concurrent access on the Gramps desktop. For true multi-user access Gramps Web is a more suitable solution.

1 Like

Thanks for that info.

Found the bug report for metadata:

Where is the documentaion on what constitutes the metadata that is at risk?

Thank you all!!
If this isn’t viable, I’ll refrain from taking any risks.
Bertrand

Hi, Your PostgreSQL topic caught my eye. While I understand concurrency isn’t only a database issue for GRAMPS, I do need a more robust postgres option for work I’m doing. Thus I’m about to publish a very alpha version of a postgres addon with psycopg3 and many more modern features. I hope you’ll check it out and give me feedback, but keep in mind it’s a very new extension so I wouldn’t rely on it.

Thanks,

Greg Lamberson

3 Likes

Hi,
I was actually wondering if Gramps wasn’t multi-user because of SQLite… and that’s not the only reason.
PostgreSQL is known to be more robust but also more difficult to install.
So I’ll be looking at this new add-on with interest.
Bertrand

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.