Replies: 1 comment 4 replies
-
|
It's something I would consider, but it would bring its own challenges. For example, you generally want some kind of time out for holding funds, but how would that work in a pure PostgreSQL implementation? Would we need something like In the meantime, I like modeling this by using a logical hierarchy of accounts. Accounts are all separate, but we can use the account name to group related accounts. For example, for a given user, you can have accounts like In a setup like this, you can get I like this approach since it's very flexible, and you can set up however many accounts you want. You can even have different types of "pending" accounts. And PostgreSQL even gives you some cool stuff for querying hierarchies: https://www.postgresql.org/docs/17/ltree.html |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Both Modern Treasury and Tiger Beetle have the concept of "pending transactions" which can then be either posted or voided. This is useful for ring fencing money while a transaction is in progress to prevent double spend, and also gives you a useful "available balance" figure for each account.
Is this something you would consider adding to
pgledger?Beta Was this translation helpful? Give feedback.
All reactions