Recently, I have been working on a project related to PostgreSQL database, documenting the knowledge that I have learned in this process. About PostgreSQL database online already have too many relevant introduction, in order to blog the system or
First, the environment$ psql--versionpsql (PostgreSQL) 9.4.4 As we all know, superuser privileges are too large for the security of the database, for non-administrator accounts, you need to create a normal user. Second, the grammar$ psql psql (9.4.
First, the environment#配置远程连接su postgres vim/var/lib/pgsql/9.4/data/postgresql.conf Edit configuration file listen_address= ' localhost ' before the comment # removed, And the ' localhost ' should be ' * '; vim/etc/postgresql/8.2/main/pg_hba.conf
First, restore disk space:
In PostgreSQL, data rows that are deleted or updated using the Delete and UPDATE statements are not actually deleted, but only the state of the row is deleted or expired on the physical address of the old version of the
Each table has a hidden system column, which cannot be the same as the system column name when creating a table column, and the following are some of the system columns that PostgreSQL has.(1) OID (4 bytes)The object identifier (that is, the object
The latest I/O statistics Tool in CentOS
As a Linux system administrator, it is essential to count various types of IO. Iostat is obviously the most important statistical tool. However, iostat is not the focus of this article, because there are
A new feature of PostgreSQL 9.2 is the range type range types, by which you can easily guess the purpose of the type, which allows you to define a range of values for a column of data.
This simple feature lets us not define two fields to describe
1. InstallationThe latest version is automatically installed using the following command, 9.5sudo apt-get install PostgreSQLWhen the installation is complete, the default is:(1) Create a Linux user named "Postgres"(2) Create a default database
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.