PostgreSQL 常用维护操作三

PostgreSQL配置文件的修改方法:

1. 配置文件所在路径:

[postgres@kevin data]$ pwd
/opt/postgresql/data
[postgres@kevin data]$ ll
总用量 1332
drwx------    8 postgres dba    4096  7月 13 10:50 base
drwx------    2 postgres dba    4096  7月 19 03:42 global
-rw-------    1 postgres dba 1181357  7月 17 16:17 gmon.out
drwx------  159 postgres dba    4096  7月 19 03:44 gprof
drwx------    2 postgres dba    4096  7月  9 09:42 pg_clog
-rw-------    1 postgres dba    3755  7月  9 14:54 pg_hba.conf
-rw-------    1 postgres dba    1631  7月  9 09:42 pg_ident.conf
drwx------    4 postgres dba    4096  7月  9 09:42 pg_multixact
drwx------    2 postgres dba    4096  7月 19 05:57 pg_stat_tmp
drwx------    2 postgres dba    4096  7月  9 09:42 pg_subtrans
drwx------    2 postgres dba    4096  7月 13 10:54 pg_tblspc
drwx------    2 postgres dba    4096  7月  9 09:42 pg_twophase
-rw-------    1 postgres dba       4  7月  9 09:42 PG_VERSION
drwx------    3 postgres dba    4096  7月  9 09:42 pg_xlog
-rw-------    1 postgres dba   16837  7月  9 14:52 postgresql.conf
-rw-------    1 postgres dba   16815  7月  9 14:51 postgresql.conf_duanyx_bak
-rw-------    1 postgres dba      29  7月 19 03:42 postmaster.opts
-rw-------    1 postgres dba      46  7月 19 03:42 postmaster.pid
[postgres@kevin data]$


2. SQL方式修改,可以在运行时设置,当然只有于部分选项,使用方法如下:

kevin_test=# SET work_mem = '16MB';
SET
kevin_test=#

kevin_test=# SELECT * FROM pg_settings WHERE source = 'session';
-[ RECORD 1 ]-------------------------------------------------------------------
--------------------------------------------------
name       | work_mem
setting    | 16384
unit       | kB
category   | Resource Usage / Memory
short_desc | Sets the maximum memory to be used for query workspaces.
extra_desc | This much memory can be used by each internal sort operation and ha
sh table before switching to temporary disk files.
context    | user
vartype    | integer
source     | session
min_val    | 64
max_val    | 2097151
enumvals   |
boot_val   | 1024
reset_val  | 1024
sourcefile |
sourceline |

kevin_test=#


恢复默认设置的方法:

kevin_test=# RESET work_mem;
RESET
kevin_test=# SELECT * FROM pg_settings WHERE name = 'work_mem';
-[ RECORD 1 ]---------------------------------------------------------------------------------------------------------------------
name       | work_mem
setting    | 1024
unit       | kB
category   | Resource Usage / Memory
short_desc | Sets the maximum memory to be used for query workspaces.
extra_desc | This much memory can be used by each internal sort operation and hash table before switching to temporary disk files.
context    | user
vartype    | integer
source     | default
min_val    | 64
max_val    | 2097151
enumvals   |
boot_val   | 1024
reset_val  | 1024
sourcefile |
sourceline |

kevin_test=#


3.查看配置项的值,当然你可以看接查看postgre.conf文件的内容,不过最好使用SQL方法查看和修改,更为快速,当然你要先知道要查看的选项的名称。

kevin_test=# SHOW work_mem;
 work_mem
----------
 1MB
(1 row)

kevin_test=#


补充一下,如果确实不知道选项的名了,可以先查一下,这些均存储在pg_settings表中,呵呵,PostgreSQL的一个特点就在这,所有数据均由数据库自己维护。

kevin_test=# SELECT name,short_desc FROM pg_settings;
              name               |                                                          short_desc

---------------------------------+----------------------------------------------------------------------------------------------------------------------------
---
 add_missing_from                | Automatically adds missing table references to FROM clauses.
 allow_system_table_mods         | Allows modifications of the structure of system tables.
 archive_command                 | Sets the shell command that will be called to archive a WAL file.
 archive_mode                    | Allows archiving of WAL files using archive_command.
 archive_timeout                 | Forces a switch to the next xlog file if a new file has not been started within N seconds.
 array_nulls                     | Enable input of NULL elements in arrays.
 authentication_timeout          | Sets the maximum allowed time to complete client authentication.
 autovacuum                      | Starts the autovacuum subprocess.
 autovacuum_analyze_scale_factor | Number of tuple inserts,updates or deletes prior to analyze as a fraction of reltuples.
 autovacuum_analyze_threshold    | Minimum number of tuple inserts,updates or deletes prior to analyze.
 autovacuum_freeze_max_age       | Age at which to autovacuum a table to prevent transaction ID wraparound.
 autovacuum_max_workers          | Sets the maximum number of simultaneously running autovacuum worker processes.
 autovacuum_naptime              | Time to sleep between autovacuum runs.
 autovacuum_vacuum_cost_delay    | Vacuum cost delay in milliseconds,for autovacuum.
 autovacuum_vacuum_cost_limit    | Vacuum cost amount available before napping,for autovacuum.
 autovacuum_vacuum_scale_factor  | Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.
 autovacuum_vacuum_threshold     | Minimum number of tuple updates or deletes prior to vacuum.
 backslash_quote                 | Sets whether "\'" is allowed in string literals.
 bgwriter_delay                  | Background writer sleep time between rounds.
 bgwriter_lru_maxpages           | Background writer maximum number of LRU pages to flush per round.
 bgwriter_lru_multiplier         | Multiple of the average buffer usage to free per round.
 block_size                      | Shows the size of a disk block.
 bonjour_name                    | Sets the Bonjour broadcast service name.
 check_function_bodies           | Check function bodies during CREATE FUNCTION.
 checkpoint_completion_target    | Time spent flushing dirty buffers during checkpoint,as fraction of checkpoint interval.
 checkpoint_segments             | Sets the maximum distance in log segments between automatic WAL checkpoints.
 checkpoint_timeout              | Sets the maximum time between automatic WAL checkpoints.
 checkpoint_warning              | Enables warnings if checkpoint segments are filled more frequently than this.
 client_encoding                 | Sets the client's character set encoding.
 client_min_messages             | Sets the message levels that are sent to the client.
 commit_delay                    | Sets the delay in microseconds between transaction commit and flushing WAL to disk.
 commit_siblings                 | Sets the minimum concurrent open transactions before performing commit_delay.
 config_file                     | Sets the server's main configuration file.
 constraint_exclusion            | Enables the planner to use constraints to optimize queries.
 cpu_index_tuple_cost            | Sets the planner's estimate of the cost of processing each index entry during an index scan.
 cpu_operator_cost               | Sets the planner's estimate of the cost of processing each operator or function call.
 cpu_tuple_cost                  | Sets the planner's estimate of the cost of processing each tuple (row).
 cursor_tuple_fraction           | Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved.
 custom_variable_classes         | Sets the list of known custom variable classes.
 data_directory                  | Sets the server's data directory.
 DateStyle                       | Sets the display format for date and time values.
 db_user_namespace               | Enables per-database user names.
 deadlock_timeout                | Sets the time to wait on a lock before checking for deadlock.
 debug_assertions                | Turns on various assertion checks.
 debug_pretty_print              | Indents parse and plan tree displays.
 debug_print_parse               | Logs each query's parse tree.
 debug_print_plan                | Logs each query's execution plan.
 debug_print_rewritten           | Logs each query's rewritten parse tree.
 default_statistics_target       | Sets the default statistics target.
 default_tablespace              | Sets the default tablespace to create tables and indexes in.
 default_text_search_config      | Sets default text search configuration.
 default_transaction_isolation   | Sets the transaction isolation level of each new transaction.
 default_transaction_read_only   | Sets the default read-only status of new transactions.
 default_with_oids               | Create new tables with OIDs by default.
 dynamic_library_path            | Sets the path for dynamically loadable modules.
 effective_cache_size            | Sets the planner's assumption about the size of the disk cache.
 effective_io_concurrency        | Number of simultaneous requests that can be handled efficiently by the disk subsystem.
 enable_bitmapscan               | Enables the planner's use of bitmap-scan plans.
 enable_hashagg                  | Enables the planner's use of hashed aggregation plans.
 enable_hashjoin                 | Enables the planner's use of hash join plans.
 enable_indexscan                | Enables the planner's use of index-scan plans.
 enable_mergejoin                | Enables the planner's use of merge join plans.
 enable_nestloop                 | Enables the planner's use of nested-loop join plans.
 enable_seqscan                  | Enables the planner's use of sequential-scan plans.
 enable_sort                     | Enables the planner's use of explicit sort steps.
 enable_tidscan                  | Enables the planner's use of TID scan plans.
 escape_string_warning           | Warn about backslash escapes in ordinary string literals.
 external_pid_file               | Writes the postmaster PID to the specified file.
 extra_float_digits              | Sets the number of digits displayed for floating-point values.
 from_collapse_limit             | Sets the FROM-list size beyond which subqueries are not collapsed.
 fsync                           | Forces synchronization of updates to disk.
 full_page_writes                | Writes full pages to WAL when first modified after a checkpoint.
 geqo                            | Enables genetic query optimization.
 geqo_effort                     | GEQO: effort is used to set the default for other GEQO parameters.
 geqo_generations                | GEQO: number of iterations of the algorithm.
 geqo_pool_size                  | GEQO: number of individuals in the population.
 geqo_selection_bias             | GEQO: selective pressure within the population.
 geqo_threshold                  | Sets the threshold of FROM items beyond which GEQO is used.
 gin_fuzzy_search_limit          | Sets the maximum allowed result for exact search by GIN.
 hba_file                        | Sets the server's "hba" configuration file.
 ident_file                      | Sets the server's "ident" configuration file.
 ignore_system_indexes           | Disables reading from system indexes.
 integer_datetimes               | Datetimes are integer based.
 IntervalStyle                   | Sets the display format for interval values.
 join_collapse_limit             | Sets the FROM-list size beyond which JOIN constructs are not flattened.
 krb_caseins_users               | Sets whether Kerberos and GSSAPI user names should be treated as case-insensitive.
 krb_server_keyfile              | Sets the location of the Kerberos server key file.
 krb_srvname                     | Sets the name of the Kerberos service.
 lc_collate                      | Shows the collation order locale.
 lc_ctype                        | Shows the character classification and case conversion locale.
 lc_messages                     | Sets the language in which messages are displayed.
 lc_monetary                     | Sets the locale for formatting monetary amounts.
 lc_numeric                      | Sets the locale for formatting numbers.
 lc_time                         | Sets the locale for formatting date and time values.
 listen_addresses                | Sets the host name or IP address(es) to listen to.
 local_preload_libraries         | Lists shared libraries to preload into each backend.
 log_autovacuum_min_duration     | Sets the minimum execution time above which autovacuum actions will be logged.
 log_checkpoints                 | Logs each checkpoint.
 log_connections                 | Logs each successful connection.
 log_destination                 | Sets the destination for server log output.
 log_directory                   | Sets the destination directory for log files.
 log_disconnections              | Logs end of a session,including duration.
 log_duration                    | Logs the duration of each completed SQL statement.
 log_error_verbosity             | Sets the verbosity of logged messages.
 log_executor_stats              | Writes executor performance statistics to the server log.
 log_filename                    | Sets the file name pattern for log files.
 log_hostname                    | Logs the host name in the connection logs.
 log_line_prefix                 | Controls information prefixed to each log line.
 log_lock_waits                  | Logs long lock waits.
 log_min_duration_statement      | Sets the minimum execution time above which statements will be logged.
 log_min_error_statement         | Causes all statements generating error at or above this level to be logged.
 log_min_messages                | Sets the message levels that are logged.
 log_parser_stats                | Writes parser performance statistics to the server log.
 log_planner_stats               | Writes planner performance statistics to the server log.
 log_rotation_age                | Automatic log file rotation will occur after N minutes.
 log_rotation_size               | Automatic log file rotation will occur after N kilobytes.
 log_statement                   | Sets the type of statements logged.
 log_statement_stats             | Writes cumulative performance statistics to the server log.
 log_temp_files                  | Log the use of temporary files larger than this number of kilobytes.
 log_timezone                    | Sets the time zone to use in log messages.
 log_truncate_on_rotation        | Truncate existing log files of same name during log rotation.
 logging_collector               | Start a subprocess to capture stderr output and/or csvlogs into log files.
 maintenance_work_mem            | Sets the maximum memory to be used for maintenance operations.
 max_connections                 | Sets the maximum number of concurrent connections.
 max_files_per_process           | Sets the maximum number of simultaneously open files for each server process.
 max_function_args               | Shows the maximum number of function arguments.
 max_identifier_length           | Shows the maximum identifier length.
 max_index_keys                  | Shows the maximum number of index keys.
 max_locks_per_transaction       | Sets the maximum number of locks per transaction.
 max_prepared_transactions       | Sets the maximum number of simultaneously prepared transactions.
 max_stack_depth                 | Sets the maximum stack depth,in kilobytes.
 password_encryption             | Encrypt passwords.
 port                            | Sets the TCP port the server listens on.
 post_auth_delay                 | Waits N seconds on connection startup after authentication.
 pre_auth_delay                  | Waits N seconds on connection startup before authentication.
 random_page_cost                | Sets the planner's estimate of the cost of a nonsequentially fetched disk page.
 regex_flavor                    | Sets the regular expression "flavor".
 search_path                     | Sets the schema search order for names that are not schema-qualified.
 segment_size                    | Shows the number of pages per disk file.
 seq_page_cost                   | Sets the planner's estimate of the cost of a sequentially fetched disk page.
 server_encoding                 | Sets the server (database) character set encoding.
 server_version                  | Shows the server version.
 server_version_num              | Shows the server version as an integer.
 session_replication_role        | Sets the session's behavior for triggers and rewrite rules.
 shared_buffers                  | Sets the number of shared memory buffers used by the server.
 shared_preload_libraries        | Lists shared libraries to preload into server.
 silent_mode                     | Runs the server silently.
 sql_inheritance                 | Causes subtables to be included by default in various commands.
 ssl                             | Enables SSL connections.
 standard_conforming_strings     | Causes '...' strings to treat backslashes literally.
 statement_timeout               | Sets the maximum allowed duration of any statement.
 stats_temp_directory            | Writes temporary statistics files to the specified directory.
 superuser_reserved_connections  | Sets the number of connection slots reserved for superusers.
 synchronize_seqscans            | Enable synchronized sequential scans.
 synchronous_commit              | Sets immediate fsync at commit.
 syslog_facility                 | Sets the syslog "facility" to be used when syslog enabled.
 syslog_ident                    | Sets the program name used to identify PostgreSQL messages in syslog.
 tcp_keepalives_count            | Maximum number of TCP keepalive retransmits.
 tcp_keepalives_idle             | Time between issuing TCP keepalives.
 tcp_keepalives_interval         | Time between TCP keepalive retransmits.
 temp_buffers                    | Sets the maximum number of temporary buffers used by each session.
 temp_tablespaces                | Sets the tablespace(s) to use for temporary tables and sort files.
 TimeZone                        | Sets the time zone for displaying and interpreting time stamps.
 timezone_abbreviations          | Selects a file of time zone abbreviations.
 trace_notify                    | Generates debugging output for LISTEN and NOTIFY.
 trace_sort                      | Emit information about resource usage in sorting.
 track_activities                | Collects information about executing commands.
 track_activity_query_size       | Sets the size reserved for pg_stat_activity.current_query,in bytes.
 track_counts                    | Collects statistics on database activity.
 track_functions                 | Collects function-level statistics on database activity.
 transaction_isolation           | Sets the current transaction's isolation level.
 transaction_read_only           | Sets the current transaction's read-only status.
 transform_null_equals           | Treats "expr=NULL" as "expr IS NULL".
 unix_socket_directory           | Sets the directory where the Unix-domain socket will be created.
 unix_socket_group               | Sets the owning group of the Unix-domain socket.
 unix_socket_permissions         | Sets the access permissions of the Unix-domain socket.
 update_process_title            | Updates the process title to show the active SQL command.
 vacuum_cost_delay               | Vacuum cost delay in milliseconds.
 vacuum_cost_limit               | Vacuum cost amount available before napping.
 vacuum_cost_page_dirty          | Vacuum cost for a page dirtied by vacuum.
 vacuum_cost_page_hit            | Vacuum cost for a page found in the buffer cache.
 vacuum_cost_page_miss           | Vacuum cost for a page not found in the buffer cache.
 vacuum_freeze_min_age           | Minimum age at which VACUUM should freeze a table row.
 vacuum_freeze_table_age         | Age at which VACUUM should scan whole table to freeze tuples.
 wal_block_size                  | Shows the block size in the write ahead log.
 wal_buffers                     | Sets the number of disk-page buffers in shared memory for WAL.
 wal_segment_size                | Shows the number of pages per write ahead log segment.
 wal_sync_method                 | Selects the method used for forcing WAL updates to disk.
 wal_writer_delay                | WAL writer sleep time between WAL flushes.
 work_mem                        | Sets the maximum memory to be used for query workspaces.
 xmlbinary                       | Sets how binary values are to be encoded in XML.
 xmloption                       | Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragment
s.
 zero_damaged_pages              | Continues processing past damaged page headers.
(193 rows)

kevin_test=#


4.记住选项值的改动并不一定对整个数据库生效,有时仅对当前session在效,在执行SET语句时,可通过LOCAL选项明确指定。

kevin_test=# SET LOCAL work_mem='16MB';
SET
kevin_test=#

5.查看系统中哪些选项被修改过。

kevin_test=# SELECT name,source,setting FROM pg_settings
WHERE source != 'default'
AND source != 'override'
ORDER BY 2,1;
            name            |        source        |      setting
----------------------------+----------------------+-------------------
 log_timezone               | command line         | PRC
 TimeZone                   | command line         | PRC
 timezone_abbreviations     | command line         | Default
 DateStyle                  | configuration file   | ISO,YMD
 default_text_search_config | configuration file   | pg_catalog.simple
 lc_messages                | configuration file   | zh_CN.UTF-8
 lc_monetary                | configuration file   | zh_CN.UTF-8
 lc_numeric                 | configuration file   | zh_CN.UTF-8
 lc_time                    | configuration file   | zh_CN.UTF-8
 listen_addresses           | configuration file   | *
 max_connections            | configuration file   | 100
 shared_buffers             | configuration file   | 3584
 max_stack_depth            | environment variable | 2048
(13 rows)

kevin_test=#

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


文章浏览阅读601次。Oracle的数据导入导出是一项基本的技能,但是对于懂数据库却不熟悉Oracle的同学可能会有一定的障碍。正好在最近的一个项目中碰到了这样一个任务,于是研究了一下Oracle的数据导入导出,在这里跟大家分享一下。......_oracle 迁移方法 对比
文章浏览阅读553次。开头还是介绍一下群,如果感兴趣polardb ,mongodb ,mysql ,postgresql ,redis 等有问题,有需求都可以加群群内有各大数据库行业大咖,CTO,可以解决你的问题。加群请联系 liuaustin3 ,在新加的朋友会分到2群(共700多人左右 1 + 2)。最近我们在使用MYSQL 8 的情况下(8.025)在数据库运行中出现一个问题 参数prefer_order_i..._mysql prefer_ordering_index
文章浏览阅读3.5k次,点赞3次,收藏7次。折腾了两个小时多才成功连上,在这分享一下我的经验,也仅仅是经验分享,有不足的地方欢迎大家在评论区补充交流。_navicat连接opengauss
文章浏览阅读2.7k次。JSON 代表 JavaScript Object Notation。它是一种开放标准格式,将数据组织成中详述的键/值对和数组。_postgresql json
文章浏览阅读2.9k次,点赞2次,收藏6次。navicat 连接postgresql 注:navicat老版本可能报错。1.在springboot中引入我们需要的依赖以及相应版本。用代码生成器生成代码后,即可进行增删改查(略)安装好postgresql 略。更改配置信息(注释中有)_mybatisplus postgresql
文章浏览阅读1.4k次。postgre进阶sql,包含分组排序、JSON解析、修改、删除、更新、强制踢出数据库所有使用用户、连表更新与删除、获取今年第一天、获取近12个月的年月、锁表处理、系统表使用(查询所有表和字段及注释、查询表占用空间)、指定数据库查找模式search_path、postgre备份及还原_pgsql分组取每组第一条
文章浏览阅读3.3k次。上一篇我们学习了日志清理,日志清理虽然解决了日志膨胀的问题,但就无法再恢复检查点之前的一致性状态。因此,我们还需要日志归档,pg的日志归档原理和Oracle类似,不过归档命令需要自己配置。以下代码在postmaster.c除了开启归档外,还需要保证wal_level不能是MINIMAL状态(因为该状态下有些操作不会记录日志)。在db启动时,会同时检查archive_mode和wal_level。以下代码也在postmaster.c(PostmasterMain函数)。......_postgresql archive_mode
文章浏览阅读3k次。系统:ubuntu22.04.3目的:利用向日葵实现windows远程控制ubuntu。_csdn局域网桌面控制ubuntu
文章浏览阅读1.6k次。表分区是解决一些因单表过大引用的性能问题的方式,比如某张表过大就会造成查询变慢,可能分区是一种解决方案。一般建议当单表大小超过内存就可以考虑表分区了。1,继承式分区,分为触发器(trigger)和规则(rule)两种方式触发器的方式1)创建表CREATE TABLE "public"."track_info_trigger_partition" ( "id" serial, "object_type" int2 NOT NULL DEFAULT 0, "object_name..._pg数据表分区的实现
文章浏览阅读3.3k次。物联网平台开源的有几个,就我晓得的有、、thingskit、JetLink、DG-iot(还有其他开源的,欢迎在评论区留言哦!),然后重点分析了下ThingsBoard、ThingsPanel和JetLink,ThingsBoard和Jetlinks是工程师思维产品,可以更多的通过配置去实现开发的目的,ThingsPanel是业务人员思路产品,或者开发或者用,避免了复杂的配置带来的较高学习门槛。ThingsBoard和Jetlinks是Java技术体系的,ThingsPanel是PHP开发的。_jetlinks和thingsboard
文章浏览阅读3.8k次。PostgreSQL 数据类型转换_pgsql数字转字符串
文章浏览阅读7k次,点赞3次,收藏14次。在做数据统计页面时,总会遇到统计某段时间内,每天、每月、每年的数据视图(柱状图、折线图等)。这些统计数据一眼看过去也简单呀,不就是按照时间周期(天、月、年)对统计数据进行分个组就完了嘛?但是会有一个问题,简单的写个sql对周期分组,获取到的统计数据是缺失的,即没有数据的那天,整条记录也都没有了。如下图需求:以当前月份(2023年2月)为起点,往后倒推一年,查询之前一年里每个月的统计数据。可见图中的数据其实是缺少的,这条sql只查询到了有数据的月份(23年的1月、2月,22年的12月)_如何用一条sql查出按年按月按天的汇总
文章浏览阅读3.8k次,点赞66次,收藏51次。PostgreSQL全球开发小组与2022年10月13日,宣布发布PostgreSQL15,这是世界上最先进的开源数据库的最新版本_mysql8 postgresql15
文章浏览阅读1.3k次。上文介绍了磁盘管理器中VFD的实现原理,本篇将从上层角度讲解磁盘管理器的工作细节。_smgrrelationdata
文章浏览阅读1.1k次。PostgreSQL设置中文语言界面和局域网访问_postgressql汉化
文章浏览阅读4.2k次。PostgreSQL 修改数据存储路径_如何设置postgresql 数据目录
文章浏览阅读4.7k次。在项目中用到了多数据源,在连接postgres数据库时,项目启动报错,说数据库连接错误,说dual不存在,网上好多教程都是说数据库查询的时候的大小写问题,而这个仅仅是连接,咋鞥却处理方法是修改application-dev.yml中的配置文件.项目中的druid参数是这样的:确实在配置文件中有个查询语句。_relation "dual" does not exist
文章浏览阅读4.9k次。PostgreSQL是一款强大的关系型数据库,但在实际使用过程中,许多用户经常会遇到慢SQL的问题。这些问题不仅会降低数据库性能,还会直接影响业务流程和用户体验。因此,本文将会深入分析PostgreSQL慢SQL的原因和优化方案,帮助用户更好地利用这个优秀的数据库系统。无论你是初学者还是专业开发者,本文都将为你提供实用的技巧和方法,让你的PostgreSQL数据库始终保持高效快速。_postgresql数据库优化
文章浏览阅读1.6k次。Linux配置postgresql开机自启_linux 启动pgsql
文章浏览阅读2k次。本篇介绍如何在centos7系统搭建一个postgresql主备集群实现最近的HA(高可用)架构。后续更高级的HA模式都是基于这个最基本的主备搭建。_postgresql主备