Please review the supported platforms page for the version of PostgreSQL database supported by the confluence system. You need to upgrade your PostgreSQL database before installing confluence.
If you migrated from another database to use the
Test: https://www.linuxidc.com/Linux/2017-10/147536.htmhttp://blog.51cto.com/12482328/2090844Https://www.cnblogs.com/think8848/p/5877076.htmlMaster/Slave configuration: https://www.linuxidc.com/Linux/2017-03/142145.htmFirst, the system
Execute commandYum Install Postgresql-serverYum Install Postgresql-contribAfter the installation is complete, check the service status of PostgreSQLSystemctl Status PostgreSQLService not startedExecute SYSTEMCTL start PostgreSQL startup serviceThe
1.postgresqlPostgresql-10.1.tar.gz2. Unzip the TAR-ZXVF file3. Perform the following sequence:./configure./configure is to check whether the current environment can install PG, the following is the error and solution I encounteredError
First, online installationapt-get install postgresql-9.4Second, the operating stateSystemctl Status PostgreSQLThe display works fine, but the default 5432 listening port is not startedThird, Reason searchSymptom: Various configuration files cannot
In the database, concurrent operations to read and write data, you will encounter dirty read, non-repeatable read, Phantom Read, serialization anomalies and so on.Characteristics of database transactions:
Atomicity (atomicity): The
Library operations
\h: View an explanation of the SQL command, such as \h Select.\?: View the list of PSQL commands.\l: Lists all databases.\c [database_name]: Connect to a different database.\d: Lists all tables for the current
PostgreSQL partition table, the operability is quite convenient.However, you can only decide whether to partition the table at creation time, and decide on the partition criteria field, after the normal table is created, you cannot modify the
--random number between 0~1SELECTRANDOM ();--take a random number between two number B and aSELECTRandom ()*(b-A+A;SELECTRandom ()*( --Ten)+Ten;--take an integer random number between two numbersSELECT Floor(Random ()*(b-A+a);SELECT Floor(Random ()
Dropuser Delete aPostgreSQLuser accounts that need to be described are only superuser or withCreateroleThe user of the permission can execute the command, and if you want to remove the superuser, you can only execute the command through the
Right-click File selection to run as Administrator
2To start the installation of the execution program
3Setting up the installation directory
4Set the Save directory for data
5Keep this password in mind as you set the database
1, change permissions, execute command: chmod 755 postgresql-9.2.4-1-linux-x64.run2. Execute the command to install the database. Go to the directory where the file is located and enter the./postgresql-9.2.4-1-linux-x64.run. Then select the database
In PostgreSQL, the WITH clause provides a way to write the auxiliary reports and queries used in a large query. It helps break down complex and large queries in a simple and easy-to-read form.1. Build a table[SQL]View PlainCopy
postgres=#
Author: icyriverSource: http://icyriver.net /? P = 177
As MySQL was acquired by Sun, many web developers and architects began to pay attention to PostgreSQL. Indeed, PostgreSQL, slony-I, PL/proxy, and pgbouncer can provide us with a complete
I recently tried PostgreSQL, a free database software, and encountered some obstacles. The system is windows.
I. VC ++ runtime error during installation
The installation version is the latest 9.2.3.1, and the Windows 7 system on the local machine is
1. After the database server is installed, there are three databases by default. You can view them in the following two ways.
postgres=# SELECT * FROM pg_database; datname | datdba | encoding | datcollate | datctype | datistemplate |
Background:
The PostgreSQL server runs on Redhat Linux and the IP address is 192.168.230.128.
The client is installed on Windows XP with the IP address 192.168.230.1
Configuration method:
1. Modify the/opt/PostgreSQL/data/PostgreSQL. conf file on
ALTER TABLE
Name
Alter table -- modify the definition of a table
Synopsis
ALTER TABLE [ ONLY ] name [ * ] action [, ... ]ALTER TABLE [ ONLY ] name [ * ] RENAME [ COLUMN ] column TO new_columnALTER TABLE name RENAME TO new_nameALTER TABLE
-- View DatabaseSelect * From pg_database;
-- View tablespacesSelect * From pg_tablespace;
-- View LanguageSelect * From pg_language;
-- View Role usersSelect * From pg_user;Select * From pg_shadow;Select * From pg_roles;
-- View the session
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.