Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix processing of literal with unit "TB" #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oberstet
Copy link

This fixes the issue:

oberstet@bvr-sql18:~/scm/3rdparty/pgtune$ sudo ./pgtune --type=dw --connections=200 --version=9.0 /data/adr/postgresql.conf
listen_addresses = '*'
# max_connections = 2000

# shared_buffers = 768GB
temp_buffers = 8GB
# work_mem = 8GB
# maintenance_work_mem = 32GB
autovacuum_work_mem = 32GB
dynamic_shared_memory_type = posix

# effective_cache_size = 2TB
# default_statistics_target = 600
effective_io_concurrency = 1000

fsync = on
wal_sync_method = fdatasync
full_page_writes = off
wal_level = minimal
# wal_buffers = 16MB

max_wal_size = 100GB
min_wal_size = 10GB
#checkpoint_segments = 512 # 16MB * 512 = 8GB
#checkpoint_timeout = 10min
#checkpoint_completion_target = 0.9

log_destination = 'stderr'
logging_collector = on
log_line_prefix = '%t %d %u '
log_timezone = 'posixrules'
# http://www.postgresql.org/docs/9.4/static/runtime-config-logging.html#GUC-LOG-MIN-MESSAGES
#log_min_messages = debug5
#log_min_messages = info
#log_statement = 'all'

track_activities = on
track_counts = on
track_io_timing = on
track_functions = pl
track_activity_query_size = 4096

#autovacuum = off
autovacuum = on
autovacuum_max_workers = 8

datestyle = 'iso, mdy'
#timezone = 'posixrules'
timezone = 'Europe/Vienna'

lc_messages = 'en_US.UTF-8'
lc_monetary = 'en_US.UTF-8'
lc_numeric = 'en_US.UTF-8'
lc_time = 'en_US.UTF-8'
default_text_search_config = 'pg_catalog.english'

max_locks_per_transaction = 1024

shared_preload_libraries = 'pg_stat_statements'

pg_stat_statements.max = 10000
pg_stat_statements.track = all


#------------------------------------------------------------------------------
# pgtune for version 9.0 run on 2015-11-21
# Based on 3170680608 KB RAM, platform Linux, 200 clients and dw workload
#------------------------------------------------------------------------------

default_statistics_target = 500
maintenance_work_mem = 2GB
checkpoint_completion_target = 0.9
effective_cache_size = 2048GB
work_mem = 7680MB
wal_buffers = 16MB
checkpoint_segments = 128
shared_buffers = 704GB
max_connections = 200

@oberstet oberstet changed the title Issue 15 Fix processing of literal with unit "TB" Nov 21, 2015
@andreif
Copy link

andreif commented Apr 7, 2016

Could you please squash the commits into one with a more descriptive message? Thanks!

@andreif
Copy link

andreif commented Apr 3, 2017

I think one could use TB in one more place, see andreif@03fe4cd

That commit is merged into andreif@allthethings together with #18 and other goodies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants