The project needs to use Gisgraphy, Zennai gisgraphy3.0 only supports postgis1.5. So you can only install the Posgresql and PostGIS of the old version number. From the support matrix diagram of PostGIS, you can see the PostgreSQL supported by the
PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed by the University of California, Berkeley computer department. Many of the concepts pioneered by Postgres appear in the commercial
Environment: centos 6.4 minimizes the default installation and configures the NIC.
Before installing PostgreSQL, check that the Internet connection is normal to download the installation file.
Use
yum -y update
Command to upgrade the system to the
Export table
Pg_dump-h localhost-u postgres (user name) database name (with user name by default)-T table (table name) > Dump.sql
Import Table
Psql-f Dump.sql
Example of a complete import export table
1, check the original database
-bash-3.2$
Install and configure PostgreSQL 9.4.3 in CentOS 6.5
I. IntroductionPostgreSQL is a very complex object-relational database management system (ORDBMS). It is also currently the most powerful, feature-rich and complex free software database system.
The upgrade in PostgreSQL, if for a minor version of the upgrade, such as 9.6.1 upgrade to 9.6.2 (the current latest version), Only 9.6.2 version of the software to replace the 9.6.1 version of the software can be, do not need to do extra work,
First, the installation of PostgreSQL1, the installation of relevant dependencies, under the terminal execution:sudo apt-get install Zlib1g-devsudo apt-get install Libreadline-dev2. Download the source code to compileSource:
0. Preparation phaseNew PG account for initializing, starting, and shutting down the databasesudo groupadd postgressudo useradd-g postgres-m postgressudo passwd postgresTo specify sudo permissions for the Postgres user group:Ll/etc/sudoerssudo chmod
1Before you install PostgreSQL, verify that the Internet connection is working to download the installation files. Use Yum First-y update instructions to upgrade the system to the latest version. 2. Turn off Firewall service: #/etc/init.d/iptables
Our current PostgreSQL is a master-slave streaming replication mode, standby no external service, only as a hot spare. Machine Environment Description:Postgres version 10Topological relationship prior to switchover:master:10.0.20.25standby:10.0.20.26
PostgreSQL creates a new databasesystem
PostgreSQL creates a new database system
Step 1: su ipvs
Step 2: bash-4.2 $/usr/pgsql-9.1/bin/initdb-D/var/lib/pgsql/9.1/data/, press enter and the following message appearsThe files belonging to this
Optimization of queries with any combination of multiple fields with high concurrency and low base. Optimization of highly concurrent and low-base multi-field queries with any combination 1. the problem first explains what the low-base multi-field
Step 1: su ipvs
Step 2: bash-4.2 $/usr/pgsql-9.1/bin/initdb-D/var/lib/pgsql/9.1/data/, press enter and the following message appearsThe files belonging to this database system will be owned by user "stored s ".
This user must also own the server
1. Create Postgres Users and Groups101501 -G dba-g root-d/usr/local/pgsql Postgres2. Add Postgres User Environment variablescat ~/. bash_profile#. bash_profile# Get the aliases and functionsifthen ~/. BASHRCfi# User specific environment and
First, installation PreparationPackages that need to be installed:Yum Install postgresql95-devel-9.5.5-1pgdg.rhel6.x86_64.rpmDocuments can be downloaded from the official website. http://yum.postgresql.org/repopackages.phpOperating system:CentOS
rhel7.2+postgresql9.6.1Requirements Softwares1.GNU make version 3.80 or newer is required[email protected] ~]# make--versionGNU make 3.82Built for X86_64-redhat-linux-gnu2.You need a iso/ansi C compiler (at least c89-compliant). Recent versions of
Tutorial
FreeBSD Install PostgreSQL Novice Tutorial
Author: Heiyeluren
QQ Group: 5415735 (FreeBSD installation and maintenance Group)
Date: 2004/9/17
Special thanks to QQ group Friend Nam, this article under his patient guidance to
My system is on the Virtual Machine Ubuntu8.041. first go to the http://www.postgresql.org that the next postgresqlcore8.3.2.use the command tar-xvfw.sql-8.3.3.tar.bz2 unzip 3. go to the decompressed folder and use. /configure command, which will
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.