PostgreSQL tutorial (18): client commands (2), postgresql tutorial
VII. pg_dump:
Pg_dump is a tool used to back up PostgreSQL databases. It can even perform a full and consistent backup when the database is being used concurrently without blocking
Frequently Asked Questions
Need to import data from an other application?
In order to re-create relationships between different records, you shoshould use the unique identifier from the original application and map it to the IDColumn in
Seven, Pg_dump:
Pg_dump is a tool for backing up the PostgreSQL database. It can even make a full, consistent backup when the database is being used concurrently, without blocking access to the database by other users. The dump format generated by
first, the use of Pg_dump:Import and export of databases is one of the most commonly used features, each of which provides tools for this, such as Oracle's Exp/imp,informix Dbexp/dbimp,mysql mysqldump, and PostgreSQL provides a corresponding tool
first, the use of Pg_dump:Import and export of databases is one of the most commonly used features, each of which provides tools for this, such as Oracle's Exp/imp,informix Dbexp/dbimp,mysql mysqldump, and PostgreSQL provides a corresponding tool
first, the use of Pg_dump:Import and export of databases is one of the most commonly used features, each of which provides tools such as Oracle's Exp/imp,informix Dbexp/dbimp,mysql mysqldump, and PostgreSQL provides a corresponding tool for Pg_ Dump
Export the database data1 to a file in the shell with Command pg_dumppg_dump-d data1-f Test.txtOrpg_dump-d data1 > Test.sqlAnd then create an empty libraryCreatedb data2Import data1 data into data2 with the Psql commandpsql-d data2-D data2 Pg_dump
Import the entire databasePsql-u postgres (user name) database name (default is the same as user name)
Export the entire databasePg_dump-h localhost-u postgres (user name) database name (default is the same as user name) >/data/dum.sql
Common commands for operations on common SecureCRT files: 1. ls only lists file names (which is equivalent to dir. dir can also be used)-A: lists all files, including hidden files. -L: a list that contains most attributes of a file. -R: recursive
Securecrt command:
Startup. Sh // start Tomcat. If startup. Sh is mapped, it can be in any directory.Shutdown. Sh // shut down TomcatCD/home // go to the home directory
Ll list all files in the current directory, including detailed information about
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.