pg-gleam

Optimize PostgreSQL queries and schema design for Gleam applications.

2|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/aboio-labs/aboio-skills --skill pg-gleam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pg-gleam
Source: https://github.com/aboio-labs/aboio-skills/tree/main/skills/pg-gleam
Command: npx skills add https://github.com/aboio-labs/aboio-skills --skill pg-gleam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices and optimization techniques for PostgreSQL databases specifically tailored for applications built with Gleam, ensuring high performance and efficient data management.

Core Features & Use Cases

  • Query Performance: Optimize SQL queries for speed and efficiency.
  • Schema Design: Implement best practices for database schemas.
  • Connection Management: Ensure efficient handling of database connections.
  • Use Case: When writing a new Gleam service that interacts heavily with Postgres, use this Skill to ensure your database schema and queries are optimized from the start, preventing future performance bottlenecks.

Quick Start

Apply the Postgres best practices for schema design to a new Gleam application.

Frequently Asked Questions about pg-gleam

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize PostgreSQL queries for a Gleam backend application?

You can optimize PostgreSQL queries for a Gleam backend by applying specific tuning techniques, using POG for connection pooling, and adhering to schema conventions like UUIDv7 and bigint money to ensure efficient data access.

What are the best practices for PostgreSQL schema design in Gleam?

PostgreSQL schema design in Gleam benefits from adopting conventions like UUIDv7 for identifiers, bigint for money values, and session-variable row-level security (RLS), ensuring robust security configurations and preventing future performance bottlenecks.

How does connection pooling via POG work with Postgres in Gleam?

Connection pooling via POG works by managing PostgreSQL connections efficiently within your Gleam application, ensuring high performance and robust data access patterns without exhausting database resources during heavy interactions.

When do I need session-variable RLS in a Postgres and Gleam application?

You need session-variable row-level security (RLS) in a Postgres and Gleam application when configuring robust security policies, ensuring data access is restricted appropriately based on specific session variables.

Why use UUIDv7 and bigint money conventions for Postgres schema design?

Using UUIDv7 and bigint money conventions for Postgres schema design ensures efficient data access patterns and accurate financial representation, preventing performance bottlenecks and data management issues in Gleam apps.