postgres-patterns
Patrones de base de datos PostgreSQL para optimización de consultas, diseño de esquemas, indexación y seguridad. Basado en las buenas prácticas de Supabase.
Original · translation did not pass checksTarget: Databases. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original text
Topics in the source
- Patrones PostgreSQL
- Cuándo Activar
- Referencia Rápida
- Tabla de Índices
- Referencia Rápida de Tipos de Datos
- Patrones Comunes
- Detección de Anti-Patrones
- Plantilla de Configuración
Referencia rápida de las buenas prácticas de PostgreSQL. Para orientación detallada, usa el agente database-reviewer. Escribir consultas SQL o migraciones Diseñar esquemas de base de datos Diagnosticar consultas lentas Implementar Row Level Security Configurar connection pooling | Patrón de Consulta | Tipo de Índice | Ejemplo | |-------------------|----------------|---------| | WHERE col = value | B-tree (por defecto) | CREATE INDEX idx ON t (col) | | WHERE col > value | B-tree | CREATE INDEX idx ON t (col) | | WHERE a = x AND b > y | Compuesto | CREATE INDEX idx ON t (a, b) | | WHERE jsonb @> '{}' | GIN | CREATE INDEX idx ON t USING gin (col) | | WHERE tsv @@ query | GIN | CREATE INDEX idx ON t USING gin (col) | | Rangos de series temporales | BRIN | CREATE INDEX idx ON t USING brin (col) | | Caso de Uso | Tipo Correcto | Evitar | |-------------|--------------|--------| | IDs | bigint | int, UUID aleatorio | | Cadenas | text | varchar(255) | | Timestamps | timestamptz | timestamp | | Dinero | numeric(10,2) | float | | Flags | boolean | varchar, int | Orden del Índice Compuesto: Índice de Cobertura: Índice Parcial: Política RLS (Optimizada): UPSERT: Paginación por Cursor: Procesami
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/es/skills/postgres-patterns/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.805Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.