2026-03-12 21:01:38

This commit is contained in:
2026-03-12 22:01:38 +01:00
parent 3bd1db26cc
commit 26296b6d6a
336 changed files with 27507 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# create user
create user wombat password 'secret';
# create database
create database dbaquaris;
# grant ALL privileges on a database to a user
grant all on database dbaquaris to wombat;
\c dbaquaris
grant all on schema public to wombat;
# connect
psql -h aquaris -U wombat -d dbaquaris;
# create schema
create schema bank;
# WAL archive status
select * from pg_stat_archiver;
select * from pg_ls_dir ('pg_wal/archive_status') ORDER BY 1;
# switch current WAL
select pg_switch_wal();
# show data directory
show data_directory;
# list databases with details
\l+