Summary of Postgres operations in Ubuntu
1.Basic operation commands
After the installation is complete, PostgreSQL creates a database user account named Postgres by default. It is a super Administrator account like the root account of MySQL
0. Remove unnecessary tables and stored procedures from the 200 server Setup database
DROP TABLE "Sensorpressure";DROP FUNCTION hex_to_int (text);DROP FUNCTION "Pressuredatatosensorpressure" ();
1. Back up 200 of the SETUPD database,:p g_dump-d-H
Recently, we have to do some examples about PostgreSQL multi-instance running. Generally, we need to install the PostgreSQL server on different machines and then configure it on different machines, for example, use plproxy to set some demos. Of
New machine error after deploymentApp 12595 Stderr:pg::connectionbad (FATAL: Peer authentication failed for user "Dbuser" app 12595 stderr:):Surf the internet for a bit, many of the posts are said to modify/etc/postgresql/9.4/main/pg_hba.conf this
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
New machine error after deploymentAPP 12595 Stderr:pg::connectionbad (FATAL: For "dbuser"12595 STDERR:):Surf the internet for a bit, many of the posts are said to modify/etc/postgresql/9.4/main/pg_hba.conf this file, but it is not a good useRecall
Log in to the PostgreSQL database consolepsql 数据库名Login successful Display[zpf@kevin ~]$ psql postgrespsql (9.4.1)Type"help"for help.postgres=#Create DATABASE User xxxCREATE USER xxx WITH PASSWORD ‘xxxxxx‘;Create a database yyy and specify the owner
Since MySQL was acquired by Oracle, PostgreSQL has become the first choice for open-source relational databases.This article describes the installation and basic usage of PostgreSQL for first-time users to get started. The following is based on the
Since MySQL was acquired by Oracle, PostgreSQL has become the first choice for open-source relational databases. This article describes the installation and basic usage of PostgreSQL for first-time users to get started. The following is based on the
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.