Stop the Old Library
There's nothing to say.
Initializes a new database with a new version of 9.4
There's nothing to say.
Check
/usr/local/cellar/postgresql/9.4.1/bin/pg_upgrade-c--link-b/usr/local/cellar/postgresql/9.3.5/bin-b/usr/local/
Building a test table structureCREATE TABLE T_test(ID Integer,Name text COLLATE pg_catalog. " Default ",Address character varying ($) COLLATE pg_catalog. " Default);Inserting test dataInsert INTO T_test SELECT generate_series (1,10000000) as key, '
1. Add a columnALTER TABLE table_name ADD column_name datatype;2. Delete a columnALTER TABLE table_name DROP column_name;3. Change the data type of a columnALTER TABLE TABLE_NAME ALTER COLUMN_NAME TYPE datatype;4. Renaming a tableALTER TABLE
When the PG installation is complete, the log is not logged by default and the corresponding (${pgdata}/postgresql.conf) configuration must be modified to only describe the common log configuration.1.logging_collector = on/off ----whether to
Inheritance is the concept of an object-oriented database. It opens the door to new and interesting possibilities for database design.Let's create two tables: a cities table and a capitals table. Naturally, the capital is also the city (cities), so
#安装python Pip (installed in the physical environment)sudo apt-get install Python-pipsudo apt-get install Python3-pipsudo pip install--upgrade pipsudo pip3 install--upgrade pip Note Description: Python-pip is the Python2 version of the package
Encounter a hole: for the following codeSelect * from where > ' 2015-11-1 ' and date'2015-11-5'Results can be obtained when executed in the client of PostgreSQL, but when executed in Java (the time range is a parameter, type string), such as Date &
Reference: https://hub.docker.com/_/postgres/https://docs.docker.com/engine/installation/debian/Using Docker for multi-instance installation is simpler, more convenient, and better isolated than the source code.Installing Docker
Update the
Original address: http://blog.chinaunix.net/uid-26642180-id-3485465.htmlI've been learning PostgreSQL recently, and here are some of the common commands that I've compiled for PostgreSQL.Connect to the database, the default user and database is
Direct data between 2 databases, using Pg_dump without producing intermediate files.Native execution exports data from the local library to the remote library-h127.0.0.1-U|-h-U postgres dbnameNative execution import data from a remote database to a
6.4 Processing Monitoring ToolsThere are also several monitoring tools to make your daily life easier.One of the most popular monitoring tools is Nagios. It is widely used and also supports a variety of software components.To use Nagios to monitor
The Beego framework supports three database types (mysql,sqlite,postgresql) by default. Although the configuration of these three kinds of databases is very similar, there are different differences. Now it's time to summarize.The following is the
----------------------------------------------installation-----------------------------------------------------The installation section mainly refer to this article:Http://www.cnblogs.com/shanyou/archive/2012/08/25/2656783.html1. Visit
PostgreSQL Chinese Information SummaryAt present PostgreSQL Chinese information is very short, there are many netizens struggling to get started with less Chinese information, here to collect the following, convenient to have friends, reduce the
ExportParameter introductionYou can use pg_dump, followed by the database to be exported-U indicates the user-F specifies the file to import.-T specifies which table to export only-H from which server to export-- Password indicates that a password
In postresql, you only need to set the field type to serial.For example The code is as follows:Copy code Create table st_cat(Id serial not null,Parentid integer,-parent idCatname character varying (20),-category nameMemo character varying (500),-
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.