adds
This commit is contained in:
parent
138db7450e
commit
ec201342f8
10
bash.md
10
bash.md
@ -26,3 +26,13 @@ put .psqlrc in home directory
|
||||
Size of directory: `du -hcs //mnt/c/PostgreSQL/cassandra30/`
|
||||
|
||||
list lines in file `wc file`
|
||||
|
||||
|
||||
General tasks
|
||||
------------------------------------------------------------------------------------------------------------
|
||||
|
||||
wc - print line counts
|
||||
|
||||
free - memory usage
|
||||
|
||||
du - disk space by file
|
@ -1 +1 @@
|
||||
"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" -o "C:\Users\ptrowbridge\Downloads\pgb.html"
|
||||
"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log"
|
28
postgres.md
28
postgres.md
@ -1,3 +1,29 @@
|
||||
setup for single sign on with [SSPI](https://wiki.postgresql.org/wiki/Configuring_for_single_sign-on_using_SSPI_on_Windows)
|
||||
|
||||
md5 hash is salted with username in front
|
||||
md5 hash is salted with username in front
|
||||
|
||||
|
||||
Memory
|
||||
=========================================================
|
||||
see whats in the buffer cache with pg_buffercache
|
||||
|
||||
`CREATE EXTENSION pg_buffercache`
|
||||
|
||||
```
|
||||
SELECT
|
||||
c.relname,
|
||||
COUNT(*) AS buffers
|
||||
FROM
|
||||
pg_class c
|
||||
INNER JOIN pg_buffercache b ON
|
||||
b.relfilenode = c.relfilenode
|
||||
INNER JOIN pg_database d ON
|
||||
( b.reldatabase = d.oid
|
||||
AND d.datname = CURRENT_DATABASE())
|
||||
GROUP BY
|
||||
c.relname
|
||||
ORDER BY
|
||||
2 DESC
|
||||
LIMIT 100;
|
||||
```
|
||||
|
||||
|
@ -28,3 +28,9 @@ Security
|
||||
LDAP & Active Directory [blog](https://www.openscg.com/2017/07/setting-up-ldap-with-active-directory-in-postgresql/)
|
||||
|
||||
Add SCRAM-SHA-256 support for password negotiation and storage (Michael Paquier, Heikki Linnakangas)
|
||||
|
||||
|
||||
Monitoring
|
||||
====================
|
||||
|
||||
file system info - [pg_stat_kcache](https://rjuju.github.io/postgresql/2018/07/17/pg_stat_kcache-2-1-is-out.html)
|
||||
|
Loading…
Reference in New Issue
Block a user