add postgresql bdr role

This commit is contained in:
Kevin Fenzi 2016-10-14 19:45:20 +00:00
parent 83f3b206c9
commit 0f2bfd76f8
12 changed files with 833 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
PGOPTIONS='-c maintenance_work_mem=1048576'
SESSIONDBS='fas2'
# Clean out old sessions since TurboGears doesn't
for db in $SESSIONDBS; do
/usr/bin/psql $db > /dev/null <<EOF
delete from visit where expiry < now() - interval '1h';
delete from visit_identity where visit_key not in (select visit_key from visit);
EOF
done