Replace [your key] with your key ID
To obtain your key ID
gpg --list-secret-keys --keyid-format LONGWhich returns something like
| " Turn on syntax highlighting | |
| syntax on | |
| " For plugins to load correctly | |
| filetype plugin indent on | |
| let mapleader = " " | |
| " Security: do not trust modelines set in files | |
| set modelines=0 |
| -- Jeremy Schneider's psqlrc http://ardentperf.com | |
| -- | |
| -- see also https://www.citusdata.com/blog/2017/07/16/customizing-my-postgres-shell-using-psqlrc/ | |
| -- | |
| \set QUIET 1 | |
| select case when count(*)=0 then 'select ''not-aurora'' as avers' | |
| else 'select aurora_version() as avers' | |
| end as aurora_version_query | |
| from pg_settings where name='rds.extensions' and setting like '%aurora_stat_utils%' \gset |
| with table_stats as ( | |
| select psut.relname, | |
| psut.n_live_tup, | |
| 1.0 * psut.idx_scan / greatest(1, psut.seq_scan + psut.idx_scan) as index_use_ratio | |
| from pg_stat_user_tables psut | |
| order by psut.n_live_tup desc | |
| ), | |
| table_io as ( | |
| select psiut.relname, | |
| sum(psiut.heap_blks_read) as table_page_read, |
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
| --- Source: http://solaimurugan.blogspot.ru/2010/10/list-out-all-forien-key-constraints.html | |
| SELECT | |
| tc.constraint_name, | |
| tc.constraint_type, | |
| tc.table_name, | |
| kcu.column_name, | |
| tc.is_deferrable, | |
| tc.initially_deferred, | |
| rc.match_option AS match_type, |