Skip to content

Instantly share code, notes, and snippets.

@chocobn69
Last active February 14, 2019 14:54
Show Gist options
  • Save chocobn69/87d3b7f2af51b47d9f9c0e115455c933 to your computer and use it in GitHub Desktop.
Save chocobn69/87d3b7f2af51b47d9f9c0e115455c933 to your computer and use it in GitHub Desktop.

new pg server

compilation

./configure \
--with-systemd \
--with-libxml \
--with-pam \
--with-system-tzdata=/usr/share/zoneinfo \
--with-uuid=e2fs \
--with-openssl \
--with-llvm LLVM_CONFIG='/usr/bin/llvm-config' \
--enable-thread-safety
make world
make check
sudo make install-world

migration db1 => db2

extensions

settings

'pg_stat_statement,pg_stat_kcache,pg_qualstats,pg_sortstats,btree_gist,pg_buffercache'
track_io_timing = on
track_activities = on
track_activity_query_size = 10000
pg_stat_statements.track = all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment