PostgreSQL Install PG

Source: Internet
Author: User
Tags postgresql

Pg_stat_statements is postgresql an extension module, the main record of SQL run information Use this module must increase this parameter shared_preload_libraries to postgresql.conf, and need to restart the database 1. Installation module download source code, unzip my directory in/home/postgres/postgresql-9.3.2/contrib/pg_stat_statements make && make install in the installed database directory /opt/pgsql9.3.2/share/extension has pg_stat_statements--1.1.sql instructions to install successfully into the database execution create extension pg_stat_statements; 2. Configuration file Add related parameter # postgresql.conf shared_preload_libraries = ' pg_stat_statements '
Pg_stat_statements.max = 10000 Pg_stat_statements.track = ALL 3. Start the database. Note that version 9.3 does not need to add custom_variable_classes = ' pg_stat_statements ' parameters pg_stat_statementscolumns

Pg_stat_statements (9.3)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.