pluginagentmarketplace/custom-plugin-postgresql · Archived

postgresql-extensions

Essential PostgreSQL extensions - pg_stat_statements, pg_trgm, PostGIS

First seen Feb 10, 2026

Installation

$ npx skills add pluginagentmarketplace/custom-plugin-postgresql --skill postgresql-extensions

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pluginagentmarketplace/custom-plugin-postgresql · top by installs.

npx skills add pluginagentmarketplace/custom-plugin-postgresql

Browse all from pluginagentmarketplace/custom-plugin-postgresql

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version3.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,259 B
  • docs SUMMARY.md 99 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

PostgreSQL Extensions Skill

Atomic skill for essential extensions

Overview

Production-ready patterns for installing and using key PostgreSQL extensions.

Prerequisites

  • PostgreSQL 16+
  • Superuser or extension privileges
  • Extension packages installed

Parameters

parameters:
  operation:
    type: string
    required: true
    enum: [install, configure, use]
  extension:
    type: string
    enum: [pg_stat_statements, pg_trgm, uuid_ossp, hstore, postgis]

Quick Reference

Install Extensions

CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS uuid_ossp;
CREATE EXTENSION IF NOT EXISTS hstore;

-- Check installed
SELECT extname, extversion FROM pg_extension;

pgstatstatements

-- Top queries
SELECT query, calls, mean_exec_time
FROM pg_stat_statements
ORDER BY total_exec_time DESC LIMIT 10;

-- Reset stats
SELECT pg_stat_statements_reset();

pg_trgm (Fuzzy Search)

-- Similarity search
SELECT name, similarity(name, 'postgresql') as sim
FROM products WHERE name % 'postgresql';

-- Create trigram index
CREATE INDEX idx_trgm ON products USING GIN (name gin_trgm_ops);

uuid-ossp

SELECT uuid_generate_v4();

hstore

SELECT 'key=>value'::hstore;
SELECT data->'key' FROM table_with_hstore;

Essential Extensions

Extension Use Case
pgstatstatements Query analysis
pg_trgm Fuzzy text search
uuid-ossp UUID generation
hstore Key-value pairs
postgis Geospatial data
pgcrypto Encryption

Troubleshooting

Problem Cause Solution
Extension not found Not installed apt install postgresql-16-*
Permission denied Not superuser GRANT CREATE ON DATABASE
Version mismatch Old extension ALTER EXTENSION ... UPDATE

Usage

Skill("postgresql-extensions")