---
title: "Discussion on \"Integer Money and Row Level Security in Postgres\" | Hashnode"
description: "Discussion on \"Integer Money and Row Level Security in Postgres\". Store every amount as an integer in the smallest unit, do each sale inside a single database function so it lands completely or not at all, and let row level security decide who can see which shop’s r"
url: "https://hashnode.com/posts/integer-money-and-row-level-security-in-postgres/6ad0c50534ac317be0568b9a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Integer Money and Row Level Security in Postgres](https://ahmadhsn1.hashnode.dev/integer-money-and-row-level-security-in-postgres?utm_source=hashnode&utm_medium=feed)

Store every amount as an integer in the smallest unit, do each sale inside a single database function so it lands completely or not at all, and let row level security decide who can see which shop’s r

Oct 15 · 4 min read · ahmadhsn1.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[Ahmad Hassan](https://hashnode.com/@ahmadhsn1)

@ahmadhsn1 · Lahore, Pakistan

  
[View profile](https://hashnode.com/@ahmadhsn1)

Full stack developer building full stack AI systems

I'm a full stack developer in Lahore and I build full stack AI systems. I write here about what I run into while shipping them: RAG, LLM tool calling, and making the AI part hold up with real users. Portfolio: https://ahmadhsn1.github.io/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
