{"slug": "how-are-you-giving-ai-agents-access-to-postgress", "title": "How are you giving AI agents access to postgress?", "summary": "A developer asks how to give AI agents access to a PostgreSQL database, weighing the risks of letting an LLM generate SQL versus using predefined operations, and noting that either approach requires writing deterministic guards.", "body_md": "I mean we can either let llm generate sql but that's risky right or should we do defined operations?\n\nI mean for both reads and write.\n\nBut whether it's llm generate or we define we have to do the manual work of writing determistic guards right...\n\nComments URL: [https://news.ycombinator.com/item?id=48949955](https://news.ycombinator.com/item?id=48949955)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/how-are-you-giving-ai-agents-access-to-postgress", "canonical_source": "https://news.ycombinator.com/item?id=48949955", "published_at": "2026-07-17 17:29:33+00:00", "updated_at": "2026-07-17 17:51:20.869753+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-safety", "ai-tools"], "entities": ["PostgreSQL"], "alternates": {"html": "https://wpnews.pro/news/how-are-you-giving-ai-agents-access-to-postgress", "markdown": "https://wpnews.pro/news/how-are-you-giving-ai-agents-access-to-postgress.md", "text": "https://wpnews.pro/news/how-are-you-giving-ai-agents-access-to-postgress.txt", "jsonld": "https://wpnews.pro/news/how-are-you-giving-ai-agents-access-to-postgress.jsonld"}}