[GH-ISSUE #2574] [FEAT]: Support postgres as a backend storage provider #1668

Closed
opened 2026-02-22 18:25:58 -05:00 by yindo · 3 comments
Owner

Originally created by @Stono on GitHub (Nov 3, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2574

What would you like to see?

sqllite is great for getting up and running quickly but isn't really fault tolerant - it'd be great to be able to post at postgres or mysql.

Originally created by @Stono on GitHub (Nov 3, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2574 ### What would you like to see? sqllite is great for getting up and running quickly but isn't really fault tolerant - it'd be great to be able to post at postgres or mysql.
yindo added the enhancementfeature request labels 2026-02-22 18:25:58 -05:00
yindo closed this issue 2026-02-22 18:25:58 -05:00
Author
Owner

@anilgulecha commented on GitHub (Mar 25, 2025):

Hi, I see here that postgres may already be supported, only not exposed via Env variables? In which case can we expose these as DB and DB_URL, so as to allow for easy configuration?

@anilgulecha commented on GitHub (Mar 25, 2025): Hi, I see [here](https://github.com/Mintplex-Labs/anything-llm/blob/master/server/prisma/schema.prisma) that postgres may already be supported, only not exposed via Env variables? In which case can we expose these as DB and DB_URL, so as to allow for easy configuration?
Author
Owner

@timothycarambat commented on GitHub (Mar 25, 2025):

In theory, this can be supported by modification of the schema.prisma file - it is not something in Docker directly or an easy to config ENV setting.

Where you can change this - the migrations should be compatible since we are using SQLlite as the base, which should be compatible to PG, but not the other way around.

https://github.com/Mintplex-Labs/anything-llm/blob/dd701f9aa434d1ac03fb9cb7b62a24e7a2d28e22/server/prisma/schema.prisma#L9-L16

@timothycarambat commented on GitHub (Mar 25, 2025): In theory, this can be supported by modification of the [schema.prisma](https://github.com/Mintplex-Labs/anything-llm/blob/master/server/prisma/schema.prisma) file - it is not something in Docker directly or an easy to config ENV setting. Where you can change this - the migrations should be compatible since we are using SQLlite as the base, which should be compatible to PG, but not the other way around. https://github.com/Mintplex-Labs/anything-llm/blob/dd701f9aa434d1ac03fb9cb7b62a24e7a2d28e22/server/prisma/schema.prisma#L9-L16
Author
Owner

@timothycarambat commented on GitHub (May 9, 2025):

https://docs.anythingllm.com/installation-docker/available-images#pg

@timothycarambat commented on GitHub (May 9, 2025): https://docs.anythingllm.com/installation-docker/available-images#pg
yindo changed title from [FEAT]: Support postgres as a backend storage provider to [GH-ISSUE #2574] [FEAT]: Support postgres as a backend storage provider 2026-06-05 14:42:02 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1668