How to install, configure, and use PostgreSQL
I. Introduction to PostgreSQL
1. What is PostgreSQL?
PostgreSQL database is currently the most powerful open-source database and supports a wide range of data types (such as JSON, JSONB, and array types)
First, the environmentVM Virtual MachinesName="Ubuntu"VERSION="12.04.4 LTS, precise pangolin" Second, the process1. Install make and do not load now.Install Make Make--3.81 2006 for for I686-pc-linux-gnu2. Get the source codeBut now there is
3.4 Replay Transaction logOnce we have created an initial base backup of our own, we can collect the Xlog created by the database. When the time comes, we can use all these xlog files and perform the recovery process we expect. This works as
If you're going to choose a free, open source database for your project, you may be hesitant between MySQL and PostgreSQL. MySQL and PostgreSQL are free, open source, powerful, and feature-rich databases. Your main question may be: which is the best
Document directory
Use PostgreSQL database for PHP Development
Use PostgreSQL database for PHP Development
Author:Heiyeshuwu
Use PostgreSQL database for PHP Development
Note: The following content is more about how to install the environment.
Have you ever accidentally deleted a database table or damaged the disk where the database is stored? If you encounter this situation, I believe you will feel very frustrated, because the results of your hard work for a few weeks may be overwhelmed.
2.4 Adjusting checkpoints and xlogSo far, this chapter has provided insight into how PostgreSQL writes data, in general, what Xlog is used for. Given this knowledge, we can now continue and learn what we can do to make our databases work more
PostgreSQL tutorial (6): Functions and operators (2), postgresql Operators
6. Pattern Matching:
PostgreSQL provides three methods for implementing pattern matching: SQL LIKE operator, closer SIMILAR TO operator, and POSIX-style regular expression.1.
The time can be added and reduced directly in PostgreSQL: Query System Current Time: Select Now ();OrSelect Current_timestamp; SELECT now ():: Timestamp + ' 1 year '; --Current time plus 1 yearsSELECT now ():: Timestamp + ' 1 month '; --Current
Use local indexes to improve PostgreSQL Performance
You may not know that PostgreSQL supports partial indexing of table data? Its advantage is that it can accelerate the reading speed of the indexed data without additional overhead. the best way is
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.