Реализовать лабораторную 3 на оценку 5 (трек 1)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
SELECT table_name FROM information_schema.tables
|
||||
WHERE table_schema = 'public' ORDER BY table_name;
|
||||
SELECT version, applied_at FROM schema_migrations ORDER BY version;
|
||||
SELECT tablename, indexname, indexdef FROM pg_indexes
|
||||
WHERE schemaname = 'public' ORDER BY tablename, indexname;
|
||||
SELECT column_name, data_type, is_nullable, column_default
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'idempotency_keys' ORDER BY ordinal_position;
|
||||
SELECT conname, pg_get_constraintdef(oid) AS definition
|
||||
FROM pg_constraint WHERE conrelid = 'idempotency_keys'::regclass
|
||||
ORDER BY conname;
|
||||
SELECT count(*) AS messages FROM messages;
|
||||
SELECT count(*) AS idempotency_rows FROM idempotency_keys;
|
||||
SHOW max_connections;
|
||||
SELECT count(*) AS connections FROM pg_stat_activity;
|
||||
Reference in New Issue
Block a user