Gerador de UUID
Gere de 1 a 100 identificadores UUID v4, com opção de remover hífens e formatar para JSON ou SQL.
Roda totalmente no seu navegador: nada do que você cola é enviado.
UUID v4 são gerados com a API crypto do navegador. São aleatórios, não secretos — nunca use um como chave de API.
Gerando…Referência de UUID
referência rápida- 8-4-4-4-12
- A forma canônica de 36 caracteres com hífens; a forma hexadecimal sem hífens tem 32.
- v4
- 122 bits aleatórios, então colisões são praticamente impossíveis sem coordenação.
- v7
- UUID ordenados pelo momento de criação que mantêm os índices do banco compactos.
- 00000000-0000-0000-0000-000000000000
- O UUID nulo, usado como valor vazio explícito.
- gen_random_uuid()
- Função do PostgreSQL 13+ para valor padrão no servidor; o MySQL usa UUID().
- não é um segredo
- Um UUID é imprevisível na prática, mas não é um token — nunca use como chave de API.
Guias de sintaxe de SQL
Todos os guias de SQLPostgres RLS 42P17: infinite recursion detected in policy
A policy on members that reads members re-enters itself. One security definer function with a pinned search_path ends the recursion and leaves the rest of the policy intact.
SQLPgBouncer Transaction vs Session Pooling: What Breaks
Port 6543 hands out a server connection per transaction, so prepared statements, SET, LISTEN and cursors stop behaving. Driver-level settings for each stack.
SQLZero-Downtime Postgres Migrations: lock_timeout and NOT VALID
One ALTER TABLE waiting behind a slow SELECT blocks every query that arrives after it. The timeout-retry loop, NOT VALID constraints and CONCURRENTLY index rules.
SQLPostgres JSONB Indexing: GIN vs Expression B-Tree
GIN answers containment, not equality, and an expression B-tree is the reverse. Choose by operator, match the expression exactly, and prove it with EXPLAIN.