mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(dblab-engine): expand notes
This commit is contained in:
@@ -56,6 +56,10 @@ ALTER DATABASE reviser SET pgaudit.log TO none;
|
||||
\c sales
|
||||
\connect vendor
|
||||
|
||||
-- Get databases' size
|
||||
SELECT pg_database_size('postgres');
|
||||
SELECT pg_size_pretty(pg_database_size('postgres'));
|
||||
|
||||
|
||||
-- List schemas
|
||||
\dn
|
||||
@@ -91,6 +95,10 @@ CREATE TABLE people (
|
||||
\d+ clients
|
||||
SELECT column_name, data_type, character_maximum_length FROM information_schema.columns WHERE table_name = 'vendors';
|
||||
|
||||
-- Get tables' size
|
||||
SELECT pg_relation_size('vendors');
|
||||
SELECT pg_size_pretty(pg_relation_size('vendors'));
|
||||
|
||||
|
||||
-- Insert data
|
||||
INSERT INTO people(id, first_name, last_name, phone)
|
||||
|
||||
Reference in New Issue
Block a user