Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 03-24-2026, 05:44 PM   #1
TIHTCM
Junior Member
TIHTCM began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2026
Device: iPad
Question: Would a PostgreSQL backend ever be feasible as an optional Calibre database

Hi Kovid and team,
First, thank you for the years of work that have gone into Calibre. It remains one of the most impressive open‑source projects I’ve ever used.

I wanted to ask whether there has ever been consideration for adding an optional PostgreSQL backend for Calibre’s metadata database. I’m absolutely not suggesting replacing SQLite, since it’s perfect for the majority of local, single‑user workflows. I’m only asking about the possibility of a second, opt‑in backend for users who run into issues related to large libraries or networked environments.

Several community discussions note that Calibre’s SQLite database should not be stored on a NAS or network share due to locking and corruption risks, and that this is a long‑standing recommendation from the project. These warnings appear throughout community documentation and user reports, where developers and experienced users emphasize avoiding networked drives to prevent database problems. Similarly, blog posts describing NAS or Docker setups point out the same limitation—that Calibre’s SQLite file should not live on network storage because it was never designed for remote filesystem semantics.

Because of that, I wanted to ask whether a PostgreSQL metadata backend could one day be considered. PostgreSQL would theoretically offer:

Safe remote access without the corruption risks inherent in SQLite over SMB/NFS.
True multi‑user concurrency via MVCC.
Better performance for very large libraries, including efficient indexing and full‑text search.
A pathway to more robust NAS or server‑hosted deployments, especially with Docker setups.

This would not need to change any existing workflow for typical users—SQLite could remain the default, and PostgreSQL could be an advanced/optional configuration for power users who specifically want NAS or multi‑device robustness.
I fully understand if this would be a large architectural change or if it’s something that’s out of scope for Calibre’s direction. But before exploring any prototypes or community experiments, I wanted to check whether this is something the core developer(s) see as:

“Not possible”,
“Not desired for project direction”, or
“Possible in theory but a major undertaking.”

I appreciate any insight you’re willing to share, and again, thank you for everything you’ve built. Calibre continues to be the heart of so many personal libraries—including mine.
Warm regards,
TIHTCM
TIHTCM is offline   Reply With Quote
Old 03-24-2026, 11:17 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,137
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nope. You want safe concurrency, use the calibre server. I am simply never going to maintain multiple datbase backends in calibre, not worth the overhead, in any shape or form.
kovidgoyal is offline   Reply With Quote
Old 03-25-2026, 04:06 AM   #3
TIHTCM
Junior Member
TIHTCM began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2026
Device: iPad
I completely understand. Thanks for the quick reply. :-)
TIHTCM is offline   Reply With Quote
Reply

Tags
backend, database, nas, postgres, share


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre database backend q4brk Development 8 10-09-2014 05:28 PM
New database backend - testers needed kovidgoyal Calibre 314 08-23-2013 06:09 AM
calibre V0.9.41 released, includes new database backend for testing Alexander Turcic Calibre 0 07-28-2013 02:47 AM
shared backend database? perler Calibre 4 01-26-2012 05:37 AM
(optional) standalone database for concurrent processes hakan42 Calibre 1 12-05-2010 07:55 PM


All times are GMT -4. The time now is 09:06 AM.


MobileRead.com is a privately owned, operated and funded community.