Postgresql Common Commands

The introduction recently collated some of the most common commands for PostgreSQL, for reference 1 only. Common commands:# time Word Fu timestampSelectExtract (Epoch fromDate'2018-04-11 23:59:59')); #1523404800# Timestamp to time stringSelectDate

Several important parameters affecting the performance of PostgreSQL

PG configuration file is the database directory of the postgresql.conf file, 8.0 later version can support k,m,g such parameters, as long as the corresponding parameters are modified to restart the PG service OK.shared_buffers: This is the most

Use PostgreSQL under Ubuntu and install postfixAdmin2.92 version of Nginx.

This article installs the PostfixAdmin2.92 version of Ubuntu14.04 with PostgreSQL and Nginx.Packages that need to be installedMemory is a little vague, probably listed:POSTFIX,POSTGRESQL,POSTFIX-PGSQL,PHP5-PGSQL,NGINX,PHP5-FPM, these packages can be

PostgreSQL Getting Started command

1 Command line logon databaseThere are two ways to execute the psql command directly under the system shell, instead of entering the PSQL environment before connecting to the database. Examples are given below:(1) Direct loginExecute command:psql-h 1

POSTGRESQL View user usage and kill the corresponding process

One, to see which users are linked to the databaseSelect from Pg_stat_activity;The pg_stat_activity here is actually a view, and its definition can be found in the View section of the Postgres database.Second, kill the process now we find all the

PostgreSQL Index Classification and usage

1. Indexing methodThe PostgreSQL database supports single index, multi-column composite index, part index, unique index, expression index, implied index, and concurrent index.2. Indexing methodsPostgreSQL supports B-tree, hash, GiST, and GIN index

Configs for PostgreSQL restart and PostgreSQL reload

--Configs requiring PostgreSQL restartselect name, setting, context from pg_settings where context = ' postmaster ';postgres=# select name, setting, contextpostgres-# from pg_settings where context = ' postmaster ';name | setting | Context----------

PostgreSQL to sort arrays

PostgreSQL supports arrays, but does not have a function to sort the inner elements of the data. Today I wrote one with Plpgsql and Plpythonu, respectively.Sample Table structure:t_girl=# \d Test_array; Table

Principle and design of SHP data batch importing PostgreSQL tool

1. BackgroundIn the production of the overall open source toolbox products, data warehousing is an important link. Although PostGIS provides data warehousing interface operations, this tool cannot be integrated into our toolbox, and the tool

"PostgreSQL Learning Journey" First: Linux and Windows installation PostgreSQL9.4

First, IntroductionPostgreSQL is currently the world's richest data type support, some data types can be said that even commercial databases are not available, such as IP type and geometry type, and secondly, PostgreSQL is a full-featured free

CentOS 7 64-bit installation PostgreSQL 9.2 finishing

CentOS versionLSB Version:: Core-4.1-amd64:core-4.1-noarchDistributor Id:centosDescription:centos Linux release 7.0.1406 (Core)release:7.0.1406Codename:coreNote: CentOS installs PostgreSQL with YumThe database program path is:/usr/pgsql-9.2The

The fourth chapter of PostgreSQL replication set up asynchronous replication (6)

4.6 Effective cleanup and recovery endsIn recent years, recovery.conf has become more and more powerful. Early in the beginning (before PostgreSQL 9.0), there were only Restore_command and some recovery_target_time related settings. More modern

PostgreSQL Pl/python-python Procedural Language Installation

Pl/python-python Procedural Language installation Check that the system provides the Plpython package (already compiled). [[email protected] ~]# DNF search python |grep postgresqlpython3-postgresql.x86_64:connect to PostgreSQL with

Install PostgreSQL via brew under Mac

Install Postgrep under Mac. Easy installation using the Brew Package management tool Brew is the Homebrew installation method Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" Mac OS x already comes with Ruby

PostgreSQL command line and database backup and recovery

Enter PostgreSQL1 Enter the database default installation will create Postgres users, using Postgres user, Psql command directly into the database: Bash code $ su postgres//psql user $   Psql//default direct access to $ psql-u posrgres-d dbname//Use

Open source database PostgreSQL released v9.2

PostgreSQL is a famous open-source database. Recently, the PostgreSQL Global Development Team released the latest version 9.2, which greatly improved the performance and added built-in support for JSON. As early as the release of beta in March,

VMware vfabric suite supports automated deployment and PostgreSQL

This article is from my translation on infoq Chinese siteArticle, Original address is: http://www.infoq.com/cn/news/2012/05/vfabric51 VMware announced VMware vfabric suite 5.1, which has increased its automatic deployment and enterprise-level open-

PHP 5.4.10 + nginx1.0.15 + PostgreSQL 9.1.3 source code compilation automated deployment Third Edition

The old version is here PHP 5.4.10 + nginx1.0.12 + PostgreSQL 9.1.3 source code compilation automated deployment Second Edition Http://blog.csdn.net/qzier_go/article/details/7316510 This time, we added the startup script. php added GD, mbstring,

Python: PostgreSQL database operations (using DB api2.0)

Yesterday, I used the pygresql module in the article "Python: Operating PostgreSQL databases (using pygresql)" to perform operations on PostgreSQL databases, today, we use another common Python database access interface dB api2.0 to perform the same

PostgreSQL cursor example (create a cursor and traverse it in the function)

-- Drop function top100cur (refcursor); Create Function top100cur (refcursor) returns refcursor as $ beginopen $1 for select * From person limit 100; return $1; end $ language plpgsql; ---------- test cursor ----------- select top100cur ('abc'); --

Total Pages: 77 1 .... 32 33 34 35 36 .... 77 Go to: GO

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.