मेरे पास निम्न समस्या है: "वर्टिकल" लिनक्स वितरण (सोफोस यूएमटी) अपने कॉन्फ़िगरेशन को स्टोर करने के लिए पोस्टग्रेक्यूएल 9.2 के साथ आता है। दुर्भाग्य से, पिछले अपडेट के बाद से, ऐसा लगता है कि कुछ उदाहरणों के लेन-देन लॉग (वाल) कभी भी फ्लश किए बिना बढ़ रहे हैं। यह pg_xlog फ़ोल्डर को आधार फ़ोल्डर से बड़े परिमाण के कई क्रम तक बढ़ने का कारण बनता है।
मैं अब नाजुक स्थिति में हूं: वाल फाइलों की अत्यधिक वृद्धि के कारण, इनमें से एक मशीन (एक वीएम) की डिस्क सोमवार से पूरी हो जाएगी। मैंने पहले से ही विक्रेता के साथ एक समर्थन मामला खोल दिया है, लेकिन अभी तक, वे बहुत मददगार नहीं हैं (वे सुझाव देते हैं कि हम वीएम को बड़ी बाधाओं के साथ पुनर्निर्माण करते हैं)।
यह डेटाबेस कभी बैकअप नहीं है क्योंकि सॉफ्टवेयर एक अलग तरीके से बैकअप कर रहा है (इसकी अपनी बैकअप प्रक्रिया है और ईमेल द्वारा बैकअप फाइलें भेजता है) और मुझे लगता है कि यही कारण है कि WAF इतने बढ़ रहे हैं।
मुझे डर है कि मैं एक PostgreSQL विशेषज्ञ होने से बहुत दूर हूं इसलिए यह बहुत संभावना है कि मैं एक मूर्खतापूर्ण या स्पष्ट सवाल पूछ रहा हूं लेकिन, वाल फ़ाइलों को निस्तारण के लिए अनुरोध करने की प्रक्रिया क्या है?
आदर्श रूप से, मैं एक ऐसी प्रक्रिया की तलाश कर रहा हूं जो मुझे समस्या को ठीक करने के लिए पर्याप्त समय देने के लिए खुद को खरीदने के लिए समस्याग्रस्त प्रणाली पर इन वाल फाइलों को फ्लश करने की अनुमति देगा।
संपादित करें : अनुरोध के अनुसार, यहां SELECT version();क्वेरी का आउटपुट है :
PostgreSQL 9.2.4 on i686-pc-linux-gnu, compiled by gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973], 32-bit
(1 पंक्ति)
और SELECT name, current_setting(name), source
FROM pg_settings
WHERE source NOT IN ('default', 'override');क्वेरी
hot_standby | on | configuration file
listen_addresses | * | configuration file
log_destination | syslog | configuration file
log_min_duration_statement | -1 | configuration file
log_min_error_statement | error | configuration file
log_min_messages | notice | configuration file
maintenance_work_mem | 512MB | configuration file
max_connections | 300 | configuration file
max_files_per_process | 1000 | configuration file
max_prepared_transactions | 0 | configuration file
max_stack_depth | 2MB | configuration file
max_standby_streaming_delay | 10s | configuration file
max_wal_senders | 10 | configuration file
password_encryption | on | configuration file
pg_stat_statements.max | 1000 | configuration file
pg_stat_statements.save | on | configuration file
pg_stat_statements.track | all | configuration file
pg_stat_statements.track_utility | off | configuration file
port | 5432 | configuration file
random_page_cost | 2 | configuration file
replication_timeout | 1min | configuration file
seq_page_cost | 1 | configuration file
shared_buffers | 512MB | configuration file
shared_preload_libraries | pg_stat_statements | configuration file
ssl | off | configuration file
stats_temp_directory | pg_stat_tmp | configuration file
superuser_reserved_connections | 20 | configuration file
synchronous_commit | local | configuration file
syslog_facility | local0 | configuration file
syslog_ident | postgres | configuration file
temp_buffers | 256MB | configuration file
temp_file_limit | -1 | configuration file
TimeZone | GMT | configuration file
timezone_abbreviations | AlmostAll | configuration file
track_activities | on | configuration file
track_activity_query_size | 4096 | configuration file
track_counts | on | configuration file
track_functions | none | configuration file
track_io_timing | on | configuration file
unix_socket_directory | /var/run/postgresql | configuration file
unix_socket_group | postgres | configuration file
unix_socket_permissions | 0777 | configuration file
update_process_title | on | configuration file
vacuum_defer_cleanup_age | 0 | configuration file
wal_buffers | 16MB | configuration file
wal_keep_segments | 100 | configuration file
wal_level | hot_standby | configuration file
wal_receiver_status_interval | 5s | configuration file
work_mem | 512MB | configuration file
(69 rows)
EDIT2
हमने अंततः पूरे सर्वर को पुनः स्थापित किया (जैसा कि सोफोस समर्थन द्वारा अनुरोध किया गया है) लेकिन पिछले संस्करण और एक बड़ी डिस्क का उपयोग करके। जाहिरा तौर पर, पुराने संस्करण नए के मुकाबले वाल के लिए बहुत कम जगह का उपयोग कर रहे हैं।
जिज्ञासा से बाहर, मैंने संस्करण और 7 गन-डिफ़ॉल्ट pgsql मापदंडों के लिए चेक को चलाया और मुझे काफी अलग परिणाम मिले:
PostgreSQL 8.4.14 on i686-pc-linux-gnu, compiled by GCC gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973], 32-bit
तथा
name | current_setting | source
---------------------------------+-----------------+----------------------
autovacuum_analyze_scale_factor | 0.0005 | configuration file
checkpoint_segments | 12 | configuration file
checkpoint_warning | 0 | configuration file
escape_string_warning | off | configuration file
fsync | on | configuration file
listen_addresses | * | configuration file
log_destination | syslog | configuration file
log_timezone | Europe/Zurich | command line
maintenance_work_mem | 1GB | configuration file
max_connections | 300 | configuration file
max_stack_depth | 2MB | environment variable
port | 5432 | configuration file
shared_buffers | 32MB | configuration file
standard_conforming_strings | off | configuration file
syslog_facility | local0 | configuration file
syslog_ident | postgres | configuration file
temp_buffers | 1024 | configuration file
TimeZone | UTC | configuration file
timezone_abbreviations | AlmostAll | configuration file
work_mem | 512MB | configuration file
(20 rows)
मुझे ऐसा लग रहा है कि इन दोनों संस्करणों के बीच काफी बदलाव हुए हैं।